Skip to content

fix(sdk-core): point defi operation routes at the vault-scoped API - #10226

Draft
mullapudipruthvik wants to merge 1 commit into
pruthvikpruthvik/DEFI-1356-defi-earn-bitgojsfrom
pruthvikpruthvik/DEFI-1357-defi-earn-bitgojs
Draft

mullapudipruthvik wants to merge 1 commit into
pruthvikpruthvik/DEFI-1356-defi-earn-bitgojsfrom
pruthvikpruthvik/DEFI-1357-defi-earn-bitgojs

Conversation

@mullapudipruthvik

Copy link
Copy Markdown
Contributor

Summary

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.

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-1356 branch); rebase to master when that lands.

Ticket: DEFI-1357

@linear-code

linear-code Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

DEFI-1357

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
mullapudipruthvik force-pushed the pruthvikpruthvik/DEFI-1356-defi-earn-bitgojs branch from 80b81b6 to 8afaa59 Compare November 25, 2026 17:02
@mullapudipruthvik
mullapudipruthvik force-pushed the pruthvikpruthvik/DEFI-1357-defi-earn-bitgojs branch from 2bf5f71 to 7b70697 Compare November 25, 2026 17:02

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant