Repository navigation
fix(sdk-core): forward unstakingParams on custodial tx/initiate - #10103
Open
OttoAllmendinger wants to merge 1 commit into
Open
OttoAllmendinger wants to merge 1 commit into
OttoAllmendinger wants to merge 1 commit into
Conversation
Contributor
Contributor
|
|
OttoAllmendinger
force-pushed
the
otto/SI-2167-custodial-early-exit-initiate
branch
from
October 30, 2026 09:26
4f9bea9 to
e0db596
Compare
sendMany on a custodial wallet dropped unstakingParams in three places, so a PoX-5 early exit (unstakingParams.pox5.branch = 'early-exit') was built as a late exit by the server: - BuildParams (buildParamKeys) did not list unstakingParams - initiateTransaction picked only TxSendBody keys from @bitgo/public-types - the TxSendBody codec is exact and strips unknown keys on encode Add unstakingParams to BuildParams and PrebuildTransactionOptions, and extend the initiate whitelist and codec locally until public-types declares it on TxSendBody. Refs: SI-2167 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
OttoAllmendinger
force-pushed
the
otto/SI-2167-custodial-early-exit-initiate
branch
from
November 2, 2026 14:29
e0db596 to
c37461f
Compare
OttoAllmendinger
marked this pull request as ready for review
November 3, 2026 14:46
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
danielpeng1
approved these changes
Nov 3, 2026
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.
Problem
pairedWallet.sendMany({ ..., unstakingParams: { pox5: { branch: 'early-exit', principalPreimage } } })on a custodial PoX-5 paired wallet created a pending approval whose storedbuildParamshad nounstakingParams, so the server built a late-exit PSBT (locktime = unlock height, no preimage) instead of an early exit. The SDK dropped the field in three places before the request left the client:BuildParams(buildParamKeys) did not listunstakingParamsWallet.initiateTransactionpicked only the keys ofTxSendBodyfrom@bitgo/public-types, which does not declareunstakingParamsTxSendBodycodec is exact and strips unknown keys on encodeChange
unstakingParamstoBuildParamsandPrebuildTransactionOptions.TxInitiateBody,whitelistedInitiateParamsinwallet.ts) until@bitgo/public-typesdeclares it onTxSendBody.custodialInitiate.ts): the encoded initiate body keepsunstakingParams.Testing
modules/sdk-core:custodialInitiate.ts(2 passing); prettier and eslint clean on touched files.tbtcstx, 2026-11-02, SI-2167): a custodial PoX-5 early exit viasendMany({ unstakingParams: { pox5: { branch: 'early-exit', principalPreimage } } })with this change passed end to end (tx6fde203b632e5e6baabed754396ab165fe35df5841f486ce78b23b083a43ac6b). The server-side halves, Wallet Platform (BitGo/bitgo-microservices#63950 and BitGo/bitgo-microservices#63958), and HSM firmware 3.79.3 were deployed on staging for the run.Starknet deploy account RPC wire format (live Sepolia)insdk-coin-starknet, a live-network test unrelated to this change.Follow-up
@bitgo/public-types7.2.0 (latest) does not declareunstakingParamsonTxSendBody, so the localTxInitiateBodyextension stays. Tracked in SI-2170; once published, drop the extension and bump the dependency.Refs: SI-2167
🤖 Generated with Claude Code