File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
modules/sdk-core/src/bitgo/staking Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,13 @@ export interface TronStakeOptions extends StakeOptions {
166166 resourceType ?: string ;
167167}
168168
169+ export interface TaoStakeOptions extends StakeOptions {
170+ /**
171+ * tao staking netUID
172+ */
173+ netUID ?: string ;
174+ }
175+
169176export interface UnstakeOptions {
170177 amount : string ;
171178 clientId ?: string ;
@@ -280,7 +287,7 @@ export interface StakingSignOptions {
280287export interface IStakingWallet {
281288 readonly walletId : string ;
282289 readonly coin : string ;
283- stake ( options : StakeOptions | TronStakeOptions ) : Promise < StakingRequest > ;
290+ stake ( options : StakeOptions | TronStakeOptions | TaoStakeOptions ) : Promise < StakingRequest > ;
284291 unstake ( options : UnstakeOptions | EthUnstakeOptions ) : Promise < StakingRequest > ;
285292 switchValidator ( options : SwitchValidatorOptions ) : Promise < StakingRequest > ;
286293 claimRewards ( options : ClaimRewardsOptions ) : Promise < StakingRequest > ;
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import {
2121 ClaimRewardsOptions ,
2222 StakingTxRequestPrebuildTransactionResult ,
2323 TronStakeOptions ,
24+ TaoStakeOptions ,
2425} from './iStakingWallet' ;
2526import { BitGoBase } from '../bitgoBase' ;
2627import { IWallet , PrebuildTransactionResult } from '../wallet' ;
@@ -58,7 +59,7 @@ export class StakingWallet implements IStakingWallet {
5859 * @param options - stake options
5960 * @return StakingRequest
6061 */
61- async stake ( options : StakeOptions | TronStakeOptions ) : Promise < StakingRequest > {
62+ async stake ( options : StakeOptions | TronStakeOptions | TaoStakeOptions ) : Promise < StakingRequest > {
6263 return await this . createStakingRequest ( options , 'STAKE' ) ;
6364 }
6465
@@ -309,7 +310,8 @@ export class StakingWallet implements IStakingWallet {
309310 | EthUnstakeOptions
310311 | SwitchValidatorOptions
311312 | ClaimRewardsOptions
312- | TronStakeOptions ,
313+ | TronStakeOptions
314+ | TaoStakeOptions ,
313315 type : string
314316 ) : Promise < StakingRequest > {
315317 return await this . bitgo
You can’t perform that action at this time.
0 commit comments