Repository navigation
fix(sdk-core): point defi operation routes at the vault-scoped API - #10226
Draft
mullapudipruthvik wants to merge 1 commit into
Draft
mullapudipruthvik wants to merge 1 commit into
mullapudipruthvik wants to merge 1 commit into
Conversation
Contributor
This was referenced Nov 24, 2026
mullapudipruthvik
force-pushed
the
pruthvikpruthvik/DEFI-1356-defi-earn-bitgojs
branch
from
November 24, 2026 11:12
f646af8 to
80b81b6
Compare
mullapudipruthvik
force-pushed
the
pruthvikpruthvik/DEFI-1357-defi-earn-bitgojs
branch
from
November 24, 2026 11:12
a7b7187 to
2bf5f71
Compare
defi-service exposes only /vaults/{vaultId}/operations[/{operationId}] with an enterprise-id header; the SDK called a wallet-scoped route that does not exist. getOperation and ResumeDepositOptions now take a required vaultId, listOperations decodes the real { operations, nextCursor } body, sends nextCursor (not cursor) and an optional walletId filter, and operation states are the API's lowercase pending/completed/cancelled. resumeDeposit also refuses an operation that belongs to a different vault. Breaking change to the wallet.defi operation options — the replaced calls 404'd, so there are no working callers to break. The dead wallet-scoped operationsUrl is deleted along with the stale commented-out pre-flight sketch that targeted it and a state value the API never returns. Ticket: DEFI-1357
mullapudipruthvik
force-pushed
the
pruthvikpruthvik/DEFI-1356-defi-earn-bitgojs
branch
from
November 25, 2026 17:02
80b81b6 to
8afaa59
Compare
mullapudipruthvik
force-pushed
the
pruthvikpruthvik/DEFI-1357-defi-earn-bitgojs
branch
from
November 25, 2026 17:02
2bf5f71 to
7b70697
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
defi-service exposes only
/vaults/{vaultId}/operations[/{operationId}]with anenterprise-idheader; the SDK called a wallet-scoped route that does not exist.getOperationandResumeDepositOptionsnow take a requiredvaultId,listOperationsdecodes the real{ operations, nextCursor }body, sendsnextCursor(notcursor) and an optionalwalletIdfilter, and operation states are the API's lowercasepending/completed/cancelled.resumeDepositalso refuses an operation that belongs to a different vault. Breaking change to thewallet.defioperation options — the replaced calls 404'd, so there are no working callers to break. The dead wallet-scopedoperationsUrlis deleted along with the stale commented-out pre-flight sketch that targeted it and a state value the API never returns.Verification
Unit suite green (vault-scoped route + header assertions, real response shapes, vault-mismatch guard). Live E2E on test env: all operation polling in the five-script suite runs through the corrected routes (DEFI-1362).
Stack
Stacked on #10225 (base:
DEFI-1356branch); rebase to master when that lands.Ticket: DEFI-1357