Skip to content

feat(hbar): add staking support via AccountUpdateBuilder#8554

Open
aditya-bitgo wants to merge 2 commits intomasterfrom
SI-361
Open

feat(hbar): add staking support via AccountUpdateBuilder#8554
aditya-bitgo wants to merge 2 commits intomasterfrom
SI-361

Conversation

@aditya-bitgo
Copy link
Copy Markdown
Contributor

ticket: SI-361

@linear
Copy link
Copy Markdown

linear bot commented Apr 17, 2026

@aditya-bitgo
Copy link
Copy Markdown
Contributor Author

@claude review this PR

@aditya-bitgo aditya-bitgo force-pushed the SI-361 branch 2 times, most recently from 940eda8 to 898a3a6 Compare April 17, 2026 11:51
Copy link
Copy Markdown
Contributor

@Doddanna17 Doddanna17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing unit tests. Every builder in this SDK has a test file under test/unit/transactionBuilder/tokenAssociateBuilder.ts, transferBuilder.ts, etc. No accountUpdateBuilder.ts was added. The CI unit-test passes because existing tests weren't broken. At minimum need: happy path stake/unstake, validateMandatoryFields throwing when stakedNodeId is missing, signImplementation max-signer check, and initBuilder round-trip from a serialized tx.

@Doddanna17 Doddanna17 marked this pull request as ready for review April 18, 2026 03:50
@Doddanna17 Doddanna17 requested review from a team as code owners April 18, 2026 03:50
Copy link
Copy Markdown
Contributor

@Doddanna17 Doddanna17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added unit tests for AccountUpdateBuilder in modules/sdk-coin-hbar/test/unit/transactionBuilder/accountUpdateBuilder.ts covering stake, unstake, decline reward, round-trip serialization, and error paths (missing stakedNodeId, invalid account ID, max signers exceeded, invalid key). All 12 tests pass.

@Doddanna17 Doddanna17 dismissed their stale review April 18, 2026 03:53

I have updated fix.

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.

2 participants