-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Cli: Support checked stake and vote operations #18449
Cli: Support checked stake and vote operations #18449
Conversation
6c4c5c5
to
8c00cf3
Compare
4597166
to
fbdb592
Compare
fbdb592
to
af358d3
Compare
I probably won't merge this until I get the Ledger work done and tested, but ready for review. |
Makes sense to me, I don't have a better suggestion. PR looks good to me overall as well |
af358d3
to
7a00961
Compare
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
7a00961
to
c1299c4
Compare
This changeset + hardware wallet signers = looks good |
Codecov Report
@@ Coverage Diff @@
## master #18449 +/- ##
========================================
Coverage 82.7% 82.7%
========================================
Files 438 438
Lines 123760 124276 +516
========================================
+ Hits 102440 102879 +439
- Misses 21320 21397 +77 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
It's a shame clap
doesn't support conditional arg validation. These could've been a --use-checked-instruction
instead of new subcommands 🤕
Agreed, I even liked just a |
* Refactor VoteAuthorize to use SignerIndex and support vote-authorize-*-checked * Add checked bool const and use in command parsing * Add create-stake-account-checked handling * Add stake-set-lockup-checked handling * Remove unnecessary mut * Add stake-authorized-checked handling (cherry picked from commit aeb30fa)
* Refactor VoteAuthorize to use SignerIndex and support vote-authorize-*-checked * Add checked bool const and use in command parsing * Add create-stake-account-checked handling * Add stake-set-lockup-checked handling * Remove unnecessary mut * Add stake-authorized-checked handling (cherry picked from commit aeb30fa)
* Refactor VoteAuthorize to use SignerIndex and support vote-authorize-*-checked * Add checked bool const and use in command parsing * Add create-stake-account-checked handling * Add stake-set-lockup-checked handling * Remove unnecessary mut * Add stake-authorized-checked handling (cherry picked from commit aeb30fa) Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Problem
New checked stake and vote instructions aren't exposed in the solana-cli
Summary of Changes
Add new checked subcommands
Needs rebase on #18345