Skip to content

docs(examples): refresh defi vault examples for self-custody flows - #10230

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

mullapudipruthvik wants to merge 1 commit into
pruthvikpruthvik/DEFI-1360-defi-earn-bitgojsfrom
pruthvikpruthvik/DEFI-1361-defi-earn-bitgojs

Conversation

@mullapudipruthvik

Copy link
Copy Markdown
Contributor

Summary

The deposit example now exercises the final shapes: catch an enriched ActiveOperationExistsError and resume with its own fields, print the per-leg pendingApprovalIds when a policy gates the legs, poll the operation via the vault-scoped getOperation, and document finishing gated legs with the generic wallet.signAndSendTxRequest (no DeFi-specific method) — including the two live-verified contract details: isTxRequestFull: true is required for full txRequests, and the signed legs still need the explicit broadcast trigger. The withdraw example prints its pendingApprovalId when gated. All three examples typecheck against the updated sdk-core types.

Verification

Examples lint + tsc --noEmit clean. Recipes mirror the flows proven live on test env (DEFI-1362).

Stack

Top of the stack: #10225 → #10226 → #10227 → #10228 → #10229 → this PR.

Ticket: DEFI-1361

@linear-code

linear-code Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

DEFI-1361

@mullapudipruthvik
mullapudipruthvik force-pushed the pruthvikpruthvik/DEFI-1360-defi-earn-bitgojs branch from 21a827c to 855a95f Compare November 24, 2026 11:12
@mullapudipruthvik
mullapudipruthvik force-pushed the pruthvikpruthvik/DEFI-1361-defi-earn-bitgojs branch from 1a4a7c9 to 7b6452e Compare November 24, 2026 11:12
The deposit example now exercises the final shapes: catch an enriched
ActiveOperationExistsError and resume with its own fields, print the
per-leg pendingApprovalIds when a policy gates the legs, poll the
operation via the vault-scoped getOperation, and document finishing
gated legs with the generic wallet.signAndSendTxRequest (no
DeFi-specific method). The withdraw example prints its pendingApprovalId
when gated. All three examples typecheck against the updated sdk-core
result and options types.

Ticket: DEFI-1361

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