Skip to content

feat: vote program complete#387

Open
sonicfromnewyoke wants to merge 1 commit intosolana-foundation:mainfrom
sonicfromnewyoke:sonic/feat-vote-program-complete
Open

feat: vote program complete#387
sonicfromnewyoke wants to merge 1 commit intosolana-foundation:mainfrom
sonicfromnewyoke:sonic/feat-vote-program-complete

Conversation

@sonicfromnewyoke
Copy link
Copy Markdown
Contributor

Problem

vote program implementation covered only a small subset of ixns, and three of those were stubs with TODO comments and no data fields - they would silently produce wrong bytes if used.
on-chain state types were entirely missing, so vote accounts returned from RPC couldn't be decoded.
also, there were no tests, this made the vote package effectively unusable for reading account state or submitting anything beyond a basic withdraw.

Summary of Changes

  • added all the missing ixns
  • fixed 3 stub ixns (InitializeAccount, Authorize, Vote)
  • added state data types
  • added on-chain state decoding

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