Repository navigation
docs(examples): refresh defi vault examples for self-custody flows - #10230
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
mullapudipruthvik
force-pushed
the
pruthvikpruthvik/DEFI-1360-defi-earn-bitgojs
branch
from
November 24, 2026 11:12
21a827c to
855a95f
Compare
mullapudipruthvik
force-pushed
the
pruthvikpruthvik/DEFI-1361-defi-earn-bitgojs
branch
from
November 24, 2026 11:12
1a4a7c9 to
7b6452e
Compare
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
mullapudipruthvik
force-pushed
the
pruthvikpruthvik/DEFI-1361-defi-earn-bitgojs
branch
from
November 25, 2026 17:02
7b6452e to
a887034
Compare
mullapudipruthvik
force-pushed
the
pruthvikpruthvik/DEFI-1360-defi-earn-bitgojs
branch
from
November 25, 2026 17:02
855a95f to
521516a
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
The deposit example now exercises the final shapes: catch an enriched
ActiveOperationExistsErrorand resume with its own fields, print the per-legpendingApprovalIdswhen a policy gates the legs, poll the operation via the vault-scopedgetOperation, and document finishing gated legs with the genericwallet.signAndSendTxRequest(no DeFi-specific method) — including the two live-verified contract details:isTxRequestFull: trueis required for full txRequests, and the signed legs still need the explicit broadcast trigger. The withdraw example prints itspendingApprovalIdwhen gated. All three examples typecheck against the updated sdk-core types.Verification
Examples lint +
tsc --noEmitclean. 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