From c728c05ac53724e8782368a10501775d0107d842 Mon Sep 17 00:00:00 2001 From: Noel Hawat Date: Fri, 9 Jan 2026 13:59:56 -0500 Subject: [PATCH] fix(sdk-core): update go staking request interface to match actual API response TICKET: SC-4862 --- .../bitgo/test/v2/fixtures/staking/goStakingWallet.ts | 2 +- .../sdk-core/src/bitgo/staking/goStakingInterfaces.ts | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/modules/bitgo/test/v2/fixtures/staking/goStakingWallet.ts b/modules/bitgo/test/v2/fixtures/staking/goStakingWallet.ts index 60c65393ec..a1d43cec03 100644 --- a/modules/bitgo/test/v2/fixtures/staking/goStakingWallet.ts +++ b/modules/bitgo/test/v2/fixtures/staking/goStakingWallet.ts @@ -21,11 +21,11 @@ export default { finalizeGoStakingRequest: function (coin: string, type: 'STAKE' | 'UNSTAKE'): GoStakingRequest { return { id: 'string', + goAccountId: 'goAccountId', amount: '1', type: type, coin: coin, status: 'NEW', - goSpecificStatus: 'NEW', statusModifiedDate: '2025-01-03T22:04:29.264Z', createdDate: '2025-01-03T22:04:29.264Z', }; diff --git a/modules/sdk-core/src/bitgo/staking/goStakingInterfaces.ts b/modules/sdk-core/src/bitgo/staking/goStakingInterfaces.ts index 0449e10355..7949b5e435 100644 --- a/modules/sdk-core/src/bitgo/staking/goStakingInterfaces.ts +++ b/modules/sdk-core/src/bitgo/staking/goStakingInterfaces.ts @@ -13,16 +13,20 @@ interface FeeInfo { export interface GoStakingRequest { id: string; - amount: string; clientId?: string; + goAccountId: string; + amount: string; type: 'STAKE' | 'UNSTAKE'; coin: string; status: string; - goSpecificStatus: string; error?: string; - rawError?: string; statusModifiedDate: string; createdDate: string; + properties?: GoStakingRequestProperties; +} + +interface GoStakingRequestProperties { + amount: string; } export interface GoStakeOptions {