@drift-labs/sdk 2.99.0-beta.0 → 2.99.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.99.0-beta.0
1
+ 2.99.0-beta.2
@@ -499,6 +499,8 @@ export declare class DriftClient {
499
499
  getUpdateUserIdleIx(userAccountPublicKey: PublicKey, userAccount: UserAccount, fillerPublicKey?: PublicKey): Promise<TransactionInstruction>;
500
500
  updateUserFuelBonus(userAccountPublicKey: PublicKey, user: UserAccount, userAuthority: PublicKey, txParams?: TxParams): Promise<TransactionSignature>;
501
501
  getUpdateUserFuelBonusIx(userAccountPublicKey: PublicKey, userAccount: UserAccount, userAuthority: PublicKey): Promise<TransactionInstruction>;
502
+ updateUserStatsReferrerStatus(userAuthority: PublicKey, txParams?: TxParams): Promise<TransactionSignature>;
503
+ getUpdateUserStatsReferrerStatusIx(userAuthority: PublicKey): Promise<TransactionInstruction>;
502
504
  updateUserStatsReferrerInfo(userStatsAccountPublicKey: PublicKey, txParams?: TxParams): Promise<TransactionSignature>;
503
505
  getUpdateUserStatsReferrerInfoIx(userStatsAccountPublicKey: PublicKey): Promise<TransactionInstruction>;
504
506
  updateUserOpenOrdersCount(userAccountPublicKey: PublicKey, user: UserAccount, txParams?: TxParams, fillerPublicKey?: PublicKey): Promise<TransactionSignature>;
@@ -2797,6 +2797,20 @@ class DriftClient {
2797
2797
  remainingAccounts,
2798
2798
  });
2799
2799
  }
2800
+ async updateUserStatsReferrerStatus(userAuthority, txParams) {
2801
+ const { txSig } = await this.sendTransaction(await this.buildTransaction(await this.getUpdateUserStatsReferrerStatusIx(userAuthority), txParams), [], this.opts);
2802
+ return txSig;
2803
+ }
2804
+ async getUpdateUserStatsReferrerStatusIx(userAuthority) {
2805
+ const userStatsAccountPublicKey = (0, pda_1.getUserStatsAccountPublicKey)(this.program.programId, userAuthority);
2806
+ return await this.program.instruction.updateStatsReferrerStatus({
2807
+ accounts: {
2808
+ state: await this.getStatePublicKey(),
2809
+ userStats: userStatsAccountPublicKey,
2810
+ authority: this.wallet.publicKey,
2811
+ },
2812
+ });
2813
+ }
2800
2814
  async updateUserStatsReferrerInfo(userStatsAccountPublicKey, txParams) {
2801
2815
  const { txSig } = await this.sendTransaction(await this.buildTransaction(await this.getUpdateUserStatsReferrerInfoIx(userStatsAccountPublicKey), txParams), [], this.opts);
2802
2816
  return txSig;
@@ -3739,6 +3753,7 @@ class DriftClient {
3739
3753
  writableSpotMarketIndexes: [marketIndex],
3740
3754
  });
3741
3755
  const spotMarket = this.getSpotMarketAccount(marketIndex);
3756
+ const tokenProgramId = this.getTokenProgramForSpotMarket(spotMarket);
3742
3757
  this.addTokenMintToRemainingAccounts(spotMarket, remainingAccounts);
3743
3758
  return await this.program.instruction.resolveSpotBankruptcy(marketIndex, {
3744
3759
  accounts: {
@@ -3751,7 +3766,7 @@ class DriftClient {
3751
3766
  spotMarketVault: spotMarket.vault,
3752
3767
  insuranceFundVault: spotMarket.insuranceFund.vault,
3753
3768
  driftSigner: this.getSignerPublicKey(),
3754
- tokenProgram: spl_token_1.TOKEN_PROGRAM_ID,
3769
+ tokenProgram: tokenProgramId,
3755
3770
  },
3756
3771
  remainingAccounts: remainingAccounts,
3757
3772
  });
@@ -4071,6 +4086,7 @@ class DriftClient {
4071
4086
  }
4072
4087
  async getSettleRevenueToInsuranceFundIx(spotMarketIndex) {
4073
4088
  const spotMarketAccount = this.getSpotMarketAccount(spotMarketIndex);
4089
+ const tokenProgramId = this.getTokenProgramForSpotMarket(spotMarketAccount);
4074
4090
  const remainingAccounts = [];
4075
4091
  this.addTokenMintToRemainingAccounts(spotMarketAccount, remainingAccounts);
4076
4092
  const ix = await this.program.instruction.settleRevenueToInsuranceFund(spotMarketIndex, {
@@ -4080,7 +4096,7 @@ class DriftClient {
4080
4096
  spotMarketVault: spotMarketAccount.vault,
4081
4097
  driftSigner: this.getSignerPublicKey(),
4082
4098
  insuranceFundVault: spotMarketAccount.insuranceFund.vault,
4083
- tokenProgram: spl_token_1.TOKEN_PROGRAM_ID,
4099
+ tokenProgram: tokenProgramId,
4084
4100
  },
4085
4101
  remainingAccounts,
4086
4102
  });
@@ -4098,6 +4114,7 @@ class DriftClient {
4098
4114
  writableSpotMarketIndexes: [spotMarketIndex],
4099
4115
  });
4100
4116
  const spotMarket = this.getSpotMarketAccount(spotMarketIndex);
4117
+ const tokenProgramId = this.getTokenProgramForSpotMarket(spotMarket);
4101
4118
  return await this.program.instruction.resolvePerpPnlDeficit(spotMarketIndex, perpMarketIndex, {
4102
4119
  accounts: {
4103
4120
  state: await this.getStatePublicKey(),
@@ -4105,7 +4122,7 @@ class DriftClient {
4105
4122
  spotMarketVault: spotMarket.vault,
4106
4123
  insuranceFundVault: spotMarket.insuranceFund.vault,
4107
4124
  driftSigner: this.getSignerPublicKey(),
4108
- tokenProgram: spl_token_1.TOKEN_PROGRAM_ID,
4125
+ tokenProgram: tokenProgramId,
4109
4126
  },
4110
4127
  remainingAccounts: remainingAccounts,
4111
4128
  });
@@ -1751,6 +1751,27 @@
1751
1751
  ],
1752
1752
  "args": []
1753
1753
  },
1754
+ {
1755
+ "name": "updateUserStatsReferrerStatus",
1756
+ "accounts": [
1757
+ {
1758
+ "name": "state",
1759
+ "isMut": false,
1760
+ "isSigner": false
1761
+ },
1762
+ {
1763
+ "name": "authority",
1764
+ "isMut": false,
1765
+ "isSigner": true
1766
+ },
1767
+ {
1768
+ "name": "userStats",
1769
+ "isMut": true,
1770
+ "isSigner": false
1771
+ }
1772
+ ],
1773
+ "args": []
1774
+ },
1754
1775
  {
1755
1776
  "name": "updateUserOpenOrdersCount",
1756
1777
  "accounts": [
@@ -10692,7 +10713,10 @@
10692
10713
  "name": "PlaceAndMake"
10693
10714
  },
10694
10715
  {
10695
- "name": "PlaceAndTake"
10716
+ "name": "PlaceAndTake",
10717
+ "fields": [
10718
+ "bool"
10719
+ ]
10696
10720
  },
10697
10721
  {
10698
10722
  "name": "Liquidation"
@@ -10888,6 +10912,9 @@
10888
10912
  },
10889
10913
  {
10890
10914
  "name": "Liquidation"
10915
+ },
10916
+ {
10917
+ "name": "AmmImmediateFill"
10891
10918
  }
10892
10919
  ]
10893
10920
  }
@@ -11030,6 +11057,23 @@
11030
11057
  ]
11031
11058
  }
11032
11059
  },
11060
+ {
11061
+ "name": "AMMAvailability",
11062
+ "type": {
11063
+ "kind": "enum",
11064
+ "variants": [
11065
+ {
11066
+ "name": "Immediate"
11067
+ },
11068
+ {
11069
+ "name": "AfterMinDuration"
11070
+ },
11071
+ {
11072
+ "name": "Unavailable"
11073
+ }
11074
+ ]
11075
+ }
11076
+ },
11033
11077
  {
11034
11078
  "name": "SettlePnlMode",
11035
11079
  "type": {
@@ -11120,6 +11164,9 @@
11120
11164
  },
11121
11165
  {
11122
11166
  "name": "SettlePnlPaused"
11167
+ },
11168
+ {
11169
+ "name": "AmmImmediateFillPaused"
11123
11170
  }
11124
11171
  ]
11125
11172
  }
@@ -983,7 +983,7 @@ export type UserStatsAccount = {
983
983
  current_epoch_referrer_reward: BN;
984
984
  };
985
985
  referrer: PublicKey;
986
- referrerStatus: boolean;
986
+ referrerStatus: number;
987
987
  authority: PublicKey;
988
988
  ifStakedQuoteAssetAmount: BN;
989
989
  lastFuelIfBonusUpdateTs: number;
@@ -499,6 +499,8 @@ export declare class DriftClient {
499
499
  getUpdateUserIdleIx(userAccountPublicKey: PublicKey, userAccount: UserAccount, fillerPublicKey?: PublicKey): Promise<TransactionInstruction>;
500
500
  updateUserFuelBonus(userAccountPublicKey: PublicKey, user: UserAccount, userAuthority: PublicKey, txParams?: TxParams): Promise<TransactionSignature>;
501
501
  getUpdateUserFuelBonusIx(userAccountPublicKey: PublicKey, userAccount: UserAccount, userAuthority: PublicKey): Promise<TransactionInstruction>;
502
+ updateUserStatsReferrerStatus(userAuthority: PublicKey, txParams?: TxParams): Promise<TransactionSignature>;
503
+ getUpdateUserStatsReferrerStatusIx(userAuthority: PublicKey): Promise<TransactionInstruction>;
502
504
  updateUserStatsReferrerInfo(userStatsAccountPublicKey: PublicKey, txParams?: TxParams): Promise<TransactionSignature>;
503
505
  getUpdateUserStatsReferrerInfoIx(userStatsAccountPublicKey: PublicKey): Promise<TransactionInstruction>;
504
506
  updateUserOpenOrdersCount(userAccountPublicKey: PublicKey, user: UserAccount, txParams?: TxParams, fillerPublicKey?: PublicKey): Promise<TransactionSignature>;
@@ -2797,6 +2797,20 @@ class DriftClient {
2797
2797
  remainingAccounts,
2798
2798
  });
2799
2799
  }
2800
+ async updateUserStatsReferrerStatus(userAuthority, txParams) {
2801
+ const { txSig } = await this.sendTransaction(await this.buildTransaction(await this.getUpdateUserStatsReferrerStatusIx(userAuthority), txParams), [], this.opts);
2802
+ return txSig;
2803
+ }
2804
+ async getUpdateUserStatsReferrerStatusIx(userAuthority) {
2805
+ const userStatsAccountPublicKey = (0, pda_1.getUserStatsAccountPublicKey)(this.program.programId, userAuthority);
2806
+ return await this.program.instruction.updateStatsReferrerStatus({
2807
+ accounts: {
2808
+ state: await this.getStatePublicKey(),
2809
+ userStats: userStatsAccountPublicKey,
2810
+ authority: this.wallet.publicKey,
2811
+ },
2812
+ });
2813
+ }
2800
2814
  async updateUserStatsReferrerInfo(userStatsAccountPublicKey, txParams) {
2801
2815
  const { txSig } = await this.sendTransaction(await this.buildTransaction(await this.getUpdateUserStatsReferrerInfoIx(userStatsAccountPublicKey), txParams), [], this.opts);
2802
2816
  return txSig;
@@ -3739,6 +3753,7 @@ class DriftClient {
3739
3753
  writableSpotMarketIndexes: [marketIndex],
3740
3754
  });
3741
3755
  const spotMarket = this.getSpotMarketAccount(marketIndex);
3756
+ const tokenProgramId = this.getTokenProgramForSpotMarket(spotMarket);
3742
3757
  this.addTokenMintToRemainingAccounts(spotMarket, remainingAccounts);
3743
3758
  return await this.program.instruction.resolveSpotBankruptcy(marketIndex, {
3744
3759
  accounts: {
@@ -3751,7 +3766,7 @@ class DriftClient {
3751
3766
  spotMarketVault: spotMarket.vault,
3752
3767
  insuranceFundVault: spotMarket.insuranceFund.vault,
3753
3768
  driftSigner: this.getSignerPublicKey(),
3754
- tokenProgram: spl_token_1.TOKEN_PROGRAM_ID,
3769
+ tokenProgram: tokenProgramId,
3755
3770
  },
3756
3771
  remainingAccounts: remainingAccounts,
3757
3772
  });
@@ -4071,6 +4086,7 @@ class DriftClient {
4071
4086
  }
4072
4087
  async getSettleRevenueToInsuranceFundIx(spotMarketIndex) {
4073
4088
  const spotMarketAccount = this.getSpotMarketAccount(spotMarketIndex);
4089
+ const tokenProgramId = this.getTokenProgramForSpotMarket(spotMarketAccount);
4074
4090
  const remainingAccounts = [];
4075
4091
  this.addTokenMintToRemainingAccounts(spotMarketAccount, remainingAccounts);
4076
4092
  const ix = await this.program.instruction.settleRevenueToInsuranceFund(spotMarketIndex, {
@@ -4080,7 +4096,7 @@ class DriftClient {
4080
4096
  spotMarketVault: spotMarketAccount.vault,
4081
4097
  driftSigner: this.getSignerPublicKey(),
4082
4098
  insuranceFundVault: spotMarketAccount.insuranceFund.vault,
4083
- tokenProgram: spl_token_1.TOKEN_PROGRAM_ID,
4099
+ tokenProgram: tokenProgramId,
4084
4100
  },
4085
4101
  remainingAccounts,
4086
4102
  });
@@ -4098,6 +4114,7 @@ class DriftClient {
4098
4114
  writableSpotMarketIndexes: [spotMarketIndex],
4099
4115
  });
4100
4116
  const spotMarket = this.getSpotMarketAccount(spotMarketIndex);
4117
+ const tokenProgramId = this.getTokenProgramForSpotMarket(spotMarket);
4101
4118
  return await this.program.instruction.resolvePerpPnlDeficit(spotMarketIndex, perpMarketIndex, {
4102
4119
  accounts: {
4103
4120
  state: await this.getStatePublicKey(),
@@ -4105,7 +4122,7 @@ class DriftClient {
4105
4122
  spotMarketVault: spotMarket.vault,
4106
4123
  insuranceFundVault: spotMarket.insuranceFund.vault,
4107
4124
  driftSigner: this.getSignerPublicKey(),
4108
- tokenProgram: spl_token_1.TOKEN_PROGRAM_ID,
4125
+ tokenProgram: tokenProgramId,
4109
4126
  },
4110
4127
  remainingAccounts: remainingAccounts,
4111
4128
  });
@@ -1751,6 +1751,27 @@
1751
1751
  ],
1752
1752
  "args": []
1753
1753
  },
1754
+ {
1755
+ "name": "updateUserStatsReferrerStatus",
1756
+ "accounts": [
1757
+ {
1758
+ "name": "state",
1759
+ "isMut": false,
1760
+ "isSigner": false
1761
+ },
1762
+ {
1763
+ "name": "authority",
1764
+ "isMut": false,
1765
+ "isSigner": true
1766
+ },
1767
+ {
1768
+ "name": "userStats",
1769
+ "isMut": true,
1770
+ "isSigner": false
1771
+ }
1772
+ ],
1773
+ "args": []
1774
+ },
1754
1775
  {
1755
1776
  "name": "updateUserOpenOrdersCount",
1756
1777
  "accounts": [
@@ -10692,7 +10713,10 @@
10692
10713
  "name": "PlaceAndMake"
10693
10714
  },
10694
10715
  {
10695
- "name": "PlaceAndTake"
10716
+ "name": "PlaceAndTake",
10717
+ "fields": [
10718
+ "bool"
10719
+ ]
10696
10720
  },
10697
10721
  {
10698
10722
  "name": "Liquidation"
@@ -10888,6 +10912,9 @@
10888
10912
  },
10889
10913
  {
10890
10914
  "name": "Liquidation"
10915
+ },
10916
+ {
10917
+ "name": "AmmImmediateFill"
10891
10918
  }
10892
10919
  ]
10893
10920
  }
@@ -11030,6 +11057,23 @@
11030
11057
  ]
11031
11058
  }
11032
11059
  },
11060
+ {
11061
+ "name": "AMMAvailability",
11062
+ "type": {
11063
+ "kind": "enum",
11064
+ "variants": [
11065
+ {
11066
+ "name": "Immediate"
11067
+ },
11068
+ {
11069
+ "name": "AfterMinDuration"
11070
+ },
11071
+ {
11072
+ "name": "Unavailable"
11073
+ }
11074
+ ]
11075
+ }
11076
+ },
11033
11077
  {
11034
11078
  "name": "SettlePnlMode",
11035
11079
  "type": {
@@ -11120,6 +11164,9 @@
11120
11164
  },
11121
11165
  {
11122
11166
  "name": "SettlePnlPaused"
11167
+ },
11168
+ {
11169
+ "name": "AmmImmediateFillPaused"
11123
11170
  }
11124
11171
  ]
11125
11172
  }
@@ -983,7 +983,7 @@ export type UserStatsAccount = {
983
983
  current_epoch_referrer_reward: BN;
984
984
  };
985
985
  referrer: PublicKey;
986
- referrerStatus: boolean;
986
+ referrerStatus: number;
987
987
  authority: PublicKey;
988
988
  ifStakedQuoteAssetAmount: BN;
989
989
  lastFuelIfBonusUpdateTs: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.99.0-beta.0",
3
+ "version": "2.99.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",
@@ -5096,6 +5096,38 @@ export class DriftClient {
5096
5096
  });
5097
5097
  }
5098
5098
 
5099
+ public async updateUserStatsReferrerStatus(
5100
+ userAuthority: PublicKey,
5101
+ txParams?: TxParams
5102
+ ): Promise<TransactionSignature> {
5103
+ const { txSig } = await this.sendTransaction(
5104
+ await this.buildTransaction(
5105
+ await this.getUpdateUserStatsReferrerStatusIx(userAuthority),
5106
+ txParams
5107
+ ),
5108
+ [],
5109
+ this.opts
5110
+ );
5111
+ return txSig;
5112
+ }
5113
+
5114
+ public async getUpdateUserStatsReferrerStatusIx(
5115
+ userAuthority: PublicKey
5116
+ ): Promise<TransactionInstruction> {
5117
+ const userStatsAccountPublicKey = getUserStatsAccountPublicKey(
5118
+ this.program.programId,
5119
+ userAuthority
5120
+ );
5121
+
5122
+ return await this.program.instruction.updateStatsReferrerStatus({
5123
+ accounts: {
5124
+ state: await this.getStatePublicKey(),
5125
+ userStats: userStatsAccountPublicKey,
5126
+ authority: this.wallet.publicKey,
5127
+ },
5128
+ });
5129
+ }
5130
+
5099
5131
  public async updateUserStatsReferrerInfo(
5100
5132
  userStatsAccountPublicKey: PublicKey,
5101
5133
  txParams?: TxParams
@@ -7143,6 +7175,7 @@ export class DriftClient {
7143
7175
  });
7144
7176
 
7145
7177
  const spotMarket = this.getSpotMarketAccount(marketIndex);
7178
+ const tokenProgramId = this.getTokenProgramForSpotMarket(spotMarket);
7146
7179
 
7147
7180
  this.addTokenMintToRemainingAccounts(spotMarket, remainingAccounts);
7148
7181
 
@@ -7157,7 +7190,7 @@ export class DriftClient {
7157
7190
  spotMarketVault: spotMarket.vault,
7158
7191
  insuranceFundVault: spotMarket.insuranceFund.vault,
7159
7192
  driftSigner: this.getSignerPublicKey(),
7160
- tokenProgram: TOKEN_PROGRAM_ID,
7193
+ tokenProgram: tokenProgramId,
7161
7194
  },
7162
7195
  remainingAccounts: remainingAccounts,
7163
7196
  });
@@ -7791,6 +7824,8 @@ export class DriftClient {
7791
7824
  spotMarketIndex: number
7792
7825
  ): Promise<TransactionInstruction> {
7793
7826
  const spotMarketAccount = this.getSpotMarketAccount(spotMarketIndex);
7827
+ const tokenProgramId = this.getTokenProgramForSpotMarket(spotMarketAccount);
7828
+
7794
7829
  const remainingAccounts = [];
7795
7830
  this.addTokenMintToRemainingAccounts(spotMarketAccount, remainingAccounts);
7796
7831
  const ix = await this.program.instruction.settleRevenueToInsuranceFund(
@@ -7802,7 +7837,7 @@ export class DriftClient {
7802
7837
  spotMarketVault: spotMarketAccount.vault,
7803
7838
  driftSigner: this.getSignerPublicKey(),
7804
7839
  insuranceFundVault: spotMarketAccount.insuranceFund.vault,
7805
- tokenProgram: TOKEN_PROGRAM_ID,
7840
+ tokenProgram: tokenProgramId,
7806
7841
  },
7807
7842
  remainingAccounts,
7808
7843
  }
@@ -7838,6 +7873,7 @@ export class DriftClient {
7838
7873
  });
7839
7874
 
7840
7875
  const spotMarket = this.getSpotMarketAccount(spotMarketIndex);
7876
+ const tokenProgramId = this.getTokenProgramForSpotMarket(spotMarket);
7841
7877
 
7842
7878
  return await this.program.instruction.resolvePerpPnlDeficit(
7843
7879
  spotMarketIndex,
@@ -7849,7 +7885,7 @@ export class DriftClient {
7849
7885
  spotMarketVault: spotMarket.vault,
7850
7886
  insuranceFundVault: spotMarket.insuranceFund.vault,
7851
7887
  driftSigner: this.getSignerPublicKey(),
7852
- tokenProgram: TOKEN_PROGRAM_ID,
7888
+ tokenProgram: tokenProgramId,
7853
7889
  },
7854
7890
  remainingAccounts: remainingAccounts,
7855
7891
  }
@@ -1751,6 +1751,27 @@
1751
1751
  ],
1752
1752
  "args": []
1753
1753
  },
1754
+ {
1755
+ "name": "updateUserStatsReferrerStatus",
1756
+ "accounts": [
1757
+ {
1758
+ "name": "state",
1759
+ "isMut": false,
1760
+ "isSigner": false
1761
+ },
1762
+ {
1763
+ "name": "authority",
1764
+ "isMut": false,
1765
+ "isSigner": true
1766
+ },
1767
+ {
1768
+ "name": "userStats",
1769
+ "isMut": true,
1770
+ "isSigner": false
1771
+ }
1772
+ ],
1773
+ "args": []
1774
+ },
1754
1775
  {
1755
1776
  "name": "updateUserOpenOrdersCount",
1756
1777
  "accounts": [
@@ -10692,7 +10713,10 @@
10692
10713
  "name": "PlaceAndMake"
10693
10714
  },
10694
10715
  {
10695
- "name": "PlaceAndTake"
10716
+ "name": "PlaceAndTake",
10717
+ "fields": [
10718
+ "bool"
10719
+ ]
10696
10720
  },
10697
10721
  {
10698
10722
  "name": "Liquidation"
@@ -10888,6 +10912,9 @@
10888
10912
  },
10889
10913
  {
10890
10914
  "name": "Liquidation"
10915
+ },
10916
+ {
10917
+ "name": "AmmImmediateFill"
10891
10918
  }
10892
10919
  ]
10893
10920
  }
@@ -11030,6 +11057,23 @@
11030
11057
  ]
11031
11058
  }
11032
11059
  },
11060
+ {
11061
+ "name": "AMMAvailability",
11062
+ "type": {
11063
+ "kind": "enum",
11064
+ "variants": [
11065
+ {
11066
+ "name": "Immediate"
11067
+ },
11068
+ {
11069
+ "name": "AfterMinDuration"
11070
+ },
11071
+ {
11072
+ "name": "Unavailable"
11073
+ }
11074
+ ]
11075
+ }
11076
+ },
11033
11077
  {
11034
11078
  "name": "SettlePnlMode",
11035
11079
  "type": {
@@ -11120,6 +11164,9 @@
11120
11164
  },
11121
11165
  {
11122
11166
  "name": "SettlePnlPaused"
11167
+ },
11168
+ {
11169
+ "name": "AmmImmediateFillPaused"
11123
11170
  }
11124
11171
  ]
11125
11172
  }
package/src/types.ts CHANGED
@@ -924,7 +924,7 @@ export type UserStatsAccount = {
924
924
  current_epoch_referrer_reward: BN;
925
925
  };
926
926
  referrer: PublicKey;
927
- referrerStatus: boolean;
927
+ referrerStatus: number;
928
928
  authority: PublicKey;
929
929
  ifStakedQuoteAssetAmount: BN;
930
930