CSHLD-597: Add sBTC burn function to BitGo JS SDK#8641
Draft
abhi-bitgo wants to merge 1 commit intomasterfrom
Draft
CSHLD-597: Add sBTC burn function to BitGo JS SDK#8641abhi-bitgo wants to merge 1 commit intomasterfrom
abhi-bitgo wants to merge 1 commit intomasterfrom
Conversation
Add SbtcWithdrawBuilder for constructing initiate-withdrawal-request contract calls to the sBTC withdrawal contract. Includes BTC address decoding utilities supporting P2PKH, P2SH, P2WPKH, P2WSH, and P2TR address types, with post-condition enforcement for fungible token transfers. Ticket: CSHLD-597
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
Add sBTC withdrawal transaction builder to the STX SDK, enabling construction and signing of
initiate-withdrawal-requestcontract calls to the sBTC withdrawal contract.Linear: CSHLD-597
Changes
SbtcWithdrawBuilderextendingAbstractContractBuilderfor sBTC withdrawal transactionsbtcAddressUtils.tswith BTC address decoding supporting P2PKH, P2SH, P2WPKH, P2WSH, and P2TRsbtcWithdrawalContractAddresstoStacksNetworkinterface and implementations (mainnet + testnet)SbtcWithdrawBuilderintoTransactionBuilderFactoryfor deserialization routingbech32andbs58checkdependencies for BTC address decodingSbtcWithdrawParamsinterfaceSbtcWithdrawBuilder(build, round-trip serialize/deserialize, validation)Test Plan
Closes CSHLD-597