File tree Expand file tree Collapse file tree 2 files changed +18
-9
lines changed
Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -5275,25 +5275,28 @@ export class AdminClient extends DriftClient {
52755275 ) ;
52765276 }
52775277
5278- public async adminDisableUpdatePerpBidAskTwap (
5278+ public async adminUpdateUserStatsPausedOperations (
52795279 authority : PublicKey ,
5280- disable : boolean
5280+ pausedOperations : number
52815281 ) : Promise < TransactionSignature > {
5282- const disableBidAskTwapUpdateIx =
5283- await this . getAdminDisableUpdatePerpBidAskTwapIx ( authority , disable ) ;
5282+ const updateUserStatsPausedOperationsIx =
5283+ await this . getAdminUpdateUserStatsPausedOperationsIx (
5284+ authority ,
5285+ pausedOperations
5286+ ) ;
52845287
5285- const tx = await this . buildTransaction ( disableBidAskTwapUpdateIx ) ;
5288+ const tx = await this . buildTransaction ( updateUserStatsPausedOperationsIx ) ;
52865289 const { txSig } = await this . sendTransaction ( tx , [ ] , this . opts ) ;
52875290
52885291 return txSig ;
52895292 }
52905293
5291- public async getAdminDisableUpdatePerpBidAskTwapIx (
5294+ public async getAdminUpdateUserStatsPausedOperationsIx (
52925295 authority : PublicKey ,
5293- disable : boolean
5296+ pausedOperations : number
52945297 ) : Promise < TransactionInstruction > {
5295- return await this . program . instruction . adminDisableUpdatePerpBidAskTwap (
5296- disable ,
5298+ return await this . program . instruction . adminUpdateUserStatsPausedOperations (
5299+ pausedOperations ,
52975300 {
52985301 accounts : {
52995302 admin : this . useHotWalletAdmin
Original file line number Diff line number Diff line change @@ -80,6 +80,12 @@ export enum UserStatus {
8080 PROTECTED_MAKER = 16 ,
8181}
8282
83+ export enum UserStatsPausedOperation {
84+ UPDATE_BID_ASK_TWAP = 1 ,
85+ AMM_ATOMIC_FILL = 2 ,
86+ AMM_ATOMIC_RISK_INCREASING_FILL = 4 ,
87+ }
88+
8389export class MarginMode {
8490 static readonly DEFAULT = { default : { } } ;
8591 static readonly HIGH_LEVERAGE = { highLeverage : { } } ;
You can’t perform that action at this time.
0 commit comments