Skip to content

Commit 6a84b4a

Browse files
authored
Merge pull request #7878 from BitGo/SC-4862
fix(sdk-core): update go staking request interface
2 parents dcab0a3 + c728c05 commit 6a84b4a

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

modules/bitgo/test/v2/fixtures/staking/goStakingWallet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ export default {
2121
finalizeGoStakingRequest: function (coin: string, type: 'STAKE' | 'UNSTAKE'): GoStakingRequest {
2222
return {
2323
id: 'string',
24+
goAccountId: 'goAccountId',
2425
amount: '1',
2526
type: type,
2627
coin: coin,
2728
status: 'NEW',
28-
goSpecificStatus: 'NEW',
2929
statusModifiedDate: '2025-01-03T22:04:29.264Z',
3030
createdDate: '2025-01-03T22:04:29.264Z',
3131
};

modules/sdk-core/src/bitgo/staking/goStakingInterfaces.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,20 @@ interface FeeInfo {
1313

1414
export interface GoStakingRequest {
1515
id: string;
16-
amount: string;
1716
clientId?: string;
17+
goAccountId: string;
18+
amount: string;
1819
type: 'STAKE' | 'UNSTAKE';
1920
coin: string;
2021
status: string;
21-
goSpecificStatus: string;
2222
error?: string;
23-
rawError?: string;
2423
statusModifiedDate: string;
2524
createdDate: string;
25+
properties?: GoStakingRequestProperties;
26+
}
27+
28+
interface GoStakingRequestProperties {
29+
amount: string;
2630
}
2731

2832
export interface GoStakeOptions {

0 commit comments

Comments
 (0)