File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
modules/sdk-core/src/bitgo/staking Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,10 @@ export interface SwitchValidatorOptions {
201201 validator : string ;
202202}
203203
204+ export interface TaoSwitchValidatorOptions extends SwitchValidatorOptions {
205+ netUID : string ;
206+ }
207+
204208export interface ClaimRewardsOptions {
205209 amount : string ;
206210 clientId ?: string ;
@@ -294,7 +298,7 @@ export interface IStakingWallet {
294298 readonly coin : string ;
295299 stake ( options : StakeOptions | TronStakeOptions | TaoStakeOptions ) : Promise < StakingRequest > ;
296300 unstake ( options : UnstakeOptions | EthUnstakeOptions ) : Promise < StakingRequest > ;
297- switchValidator ( options : SwitchValidatorOptions ) : Promise < StakingRequest > ;
301+ switchValidator ( options : SwitchValidatorOptions | TaoSwitchValidatorOptions ) : Promise < StakingRequest > ;
298302 claimRewards ( options : ClaimRewardsOptions ) : Promise < StakingRequest > ;
299303 getStakingRequest ( stakingRequestId : string ) : Promise < StakingRequest > ;
300304 getTransactionsReadyToSign ( stakingRequestId : string ) : Promise < TransactionsReadyToSign > ;
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import {
2222 StakingTxRequestPrebuildTransactionResult ,
2323 TronStakeOptions ,
2424 TaoStakeOptions ,
25+ TaoSwitchValidatorOptions ,
2526} from './iStakingWallet' ;
2627import { BitGoBase } from '../bitgoBase' ;
2728import { IWallet , PrebuildTransactionResult } from '../wallet' ;
@@ -78,7 +79,7 @@ export class StakingWallet implements IStakingWallet {
7879 * @param options - switch validator options
7980 * @return StakingRequest
8081 */
81- async switchValidator ( options : SwitchValidatorOptions ) : Promise < StakingRequest > {
82+ async switchValidator ( options : SwitchValidatorOptions | TaoSwitchValidatorOptions ) : Promise < StakingRequest > {
8283 return await this . createStakingRequest ( options , 'SWITCH_VALIDATOR' ) ;
8384 }
8485
@@ -317,7 +318,8 @@ export class StakingWallet implements IStakingWallet {
317318 | SwitchValidatorOptions
318319 | ClaimRewardsOptions
319320 | TronStakeOptions
320- | TaoStakeOptions ,
321+ | TaoStakeOptions
322+ | TaoSwitchValidatorOptions ,
321323 type : string
322324 ) : Promise < StakingRequest > {
323325 return await this . bitgo
You can’t perform that action at this time.
0 commit comments