Skip to content

feat: stake state types & ext tests#386

Merged
HealthyBuilder merged 1 commit into
solana-foundation:mainfrom
sonicfromnewyoke:sonic/feat-stake-state-types-and-tests
Apr 16, 2026
Merged

feat: stake state types & ext tests#386
HealthyBuilder merged 1 commit into
solana-foundation:mainfrom
sonicfromnewyoke:sonic/feat-stake-state-types-and-tests

Conversation

@sonicfromnewyoke
Copy link
Copy Markdown
Contributor

@sonicfromnewyoke sonicfromnewyoke commented Apr 10, 2026

Problem

stake program implementation covered all instructions but was missing the on-chain account state types needed to read stake accounts from RPC
users could build and send staking transactions but couldn't decode the returned account data to inspect delegation status, authorities, lockup, or stake flags
the program also had zero test coverage

Summary of Changes

  • added on-chain state types: StakeStateV2, Meta, StateAuthorized, etc, and DecodeStakeAccount convenience fn
  • added StakeStateType named type for discriminator constants

related to #352

@HealthyBuilder
Copy link
Copy Markdown
Collaborator

Merging — users can now decode stake account data from RPC. Closes #352

@HealthyBuilder HealthyBuilder merged commit 6325515 into solana-foundation:main Apr 16, 2026
9 checks passed
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