Skip to content

Commit

Permalink
feat(sdk-core): add optional StakeOptions fields
Browse files Browse the repository at this point in the history
to support STX staking

TICKET: EA-2430

TICKET: EA-2430
  • Loading branch information
sandra-wang-bitgo committed Dec 7, 2023
1 parent 8ff1d25 commit bff557c
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 bff557c

Please sign in to comment.