File tree Expand file tree Collapse file tree 2 files changed +69
-1
lines changed Expand file tree Collapse file tree 2 files changed +69
-1
lines changed Original file line number Diff line number Diff line change @@ -4652,6 +4652,35 @@ export class AdminClient extends DriftClient {
46524652 ) ;
46534653 }
46544654
4655+ public async updateFeatureBitFlagsMedianTriggerPrice (
4656+ enable : boolean
4657+ ) : Promise < TransactionSignature > {
4658+ const updateFeatureBitFlagsMedianTriggerPriceIx =
4659+ await this . getUpdateFeatureBitFlagsMedianTriggerPriceIx ( enable ) ;
4660+ const tx = await this . buildTransaction (
4661+ updateFeatureBitFlagsMedianTriggerPriceIx
4662+ ) ;
4663+ const { txSig } = await this . sendTransaction ( tx , [ ] , this . opts ) ;
4664+
4665+ return txSig ;
4666+ }
4667+
4668+ public async getUpdateFeatureBitFlagsMedianTriggerPriceIx (
4669+ enable : boolean
4670+ ) : Promise < TransactionInstruction > {
4671+ return await this . program . instruction . updateFeatureBitFlagsMedianTriggerPrice (
4672+ enable ,
4673+ {
4674+ accounts : {
4675+ admin : this . useHotWalletAdmin
4676+ ? this . wallet . publicKey
4677+ : this . getStateAccount ( ) . admin ,
4678+ state : await this . getStatePublicKey ( ) ,
4679+ } ,
4680+ }
4681+ ) ;
4682+ }
4683+
46554684 public async updateDelegateUserGovTokenInsuranceStake (
46564685 authority : PublicKey ,
46574686 delegate : PublicKey
Original file line number Diff line number Diff line change 31413141 ],
31423142 "args" : []
31433143 },
3144+ {
3145+ "name" : " updateDelegateUserGovTokenInsuranceStake" ,
3146+ "accounts" : [
3147+ {
3148+ "name" : " spotMarket" ,
3149+ "isMut" : true ,
3150+ "isSigner" : false
3151+ },
3152+ {
3153+ "name" : " insuranceFundStake" ,
3154+ "isMut" : false ,
3155+ "isSigner" : false
3156+ },
3157+ {
3158+ "name" : " userStats" ,
3159+ "isMut" : true ,
3160+ "isSigner" : false
3161+ },
3162+ {
3163+ "name" : " admin" ,
3164+ "isMut" : false ,
3165+ "isSigner" : true
3166+ },
3167+ {
3168+ "name" : " insuranceFundVault" ,
3169+ "isMut" : true ,
3170+ "isSigner" : false
3171+ },
3172+ {
3173+ "name" : " state" ,
3174+ "isMut" : false ,
3175+ "isSigner" : false
3176+ }
3177+ ],
3178+ "args" : []
3179+ },
31443180 {
31453181 "name" : " initializeInsuranceFundStake" ,
31463182 "accounts" : [
1621816254 "name" : " InvalidIfRebalanceSwap" ,
1621916255 "msg" : " Invalid If Rebalance Swap"
1622016256 }
16221- ]
16257+ ],
16258+ "metadata" : {
16259+ "address" : " dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH"
16260+ }
1622216261}
You can’t perform that action at this time.
0 commit comments