Skip to content

Commit

Permalink
Merge pull request #4128 from BitGo/sandra/EA-2430
Browse files Browse the repository at this point in the history
feat(sdk-core): add optional StakeOptions fields to support STX staking
  • Loading branch information
sandra-wang-bitgo authored Dec 8, 2023
2 parents a19379a + bff557c commit 1fce3ac
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion modules/sdk-core/src/bitgo/staking/iStakingWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
}

Expand Down

0 comments on commit 1fce3ac

Please sign in to comment.