From bff557c5d5cc6f5e53096d7ea8a9848b97e18249 Mon Sep 17 00:00:00 2001 From: Sandra Wang Date: Wed, 6 Dec 2023 16:05:27 -0500 Subject: [PATCH] feat(sdk-core): add optional StakeOptions fields to support STX staking TICKET: EA-2430 TICKET: EA-2430 --- .../sdk-core/src/bitgo/staking/iStakingWallet.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/modules/sdk-core/src/bitgo/staking/iStakingWallet.ts b/modules/sdk-core/src/bitgo/staking/iStakingWallet.ts index 15342ca958..de3d0d21c6 100644 --- a/modules/sdk-core/src/bitgo/staking/iStakingWallet.ts +++ b/modules/sdk-core/src/bitgo/staking/iStakingWallet.ts @@ -23,11 +23,22 @@ export interface DelegationRequest { validator: string; } +/** + * Represents the options for staking. + * @typedef {Object} StakeOptions + * @property {string} [amount] - amount to stake + * @property {string} [clientId] - clientId + * @property {string} [validator] - chosen validator + * @property {string} [duration] - delegation duration: a numeric string, in days or cycles + * @property {string} [subType] - coin sepcific staking subtype + * @property {DelegationRequest[]} [delegationRequests] - The delegation requests + */ export interface StakeOptions { amount?: string; clientId?: string; validator?: string; - durationSeconds?: string; + duration?: string; + subType?: string; delegationRequests?: DelegationRequest[]; }