Skip to content

feat: stake state types & ext tests#386

Open
sonicfromnewyoke wants to merge 1 commit intosolana-foundation:mainfrom
sonicfromnewyoke:sonic/feat-stake-state-types-and-tests
Open

feat: stake state types & ext tests#386
sonicfromnewyoke wants to merge 1 commit intosolana-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

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.

1 participant