-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R4R: gaiad gentx subcommands refactoring #2874
Conversation
90baf04
to
94c6c74
Compare
Codecov Report
@@ Coverage Diff @@
## develop #2874 +/- ##
===========================================
+ Coverage 56.85% 56.86% +0.01%
===========================================
Files 120 120
Lines 8293 8298 +5
===========================================
+ Hits 4715 4719 +4
- Misses 3260 3261 +1
Partials 318 318 |
@alessio Looks like |
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.
A few changes req'd, otherwise looks like a nice cleanup!
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.
Tested ACK 👍
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.
Left some surface level feedback. Will test shortly 👌
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.
LGTM.
Tested and works fine. I think we should just remove that shorthand CLI flag and that's all ☕️
All comments were addressed @alexanderbez @cwgoes, thanks! |
- Replace STDIN/STDOUT redirection in `gaiad gentx` with subcommands command line options to redirect streams to file since viper does not handle redirection well. - Use `BuildCreateValidatorMsg` to build a `MsgCreateValidator` rather than redirecting to `gaiacli tx stake create-validator`. - `PrintUnsignedStdTx` now takes an `io.Writer` object. - Mark `--pubkey`, `--amount` and `--moniker` as required flags instead of validating them manually. - Use stake.NewDescription() to make a new Description - ref #2835
7488178
to
486f65c
Compare
Replace STDIN/STDOUT redirection in
gaiad gentx
with subcommands command line options to redirect streams to file since viper does not handle redirection well.Use
BuildCreateValidatorMsg
to build aMsgCreateValidator
rather than redirecting togaiacli tx stake create-validator
.PrintUnsignedStdTx
now takes anio.Writer
object.Mark
--pubkey
,--amount
and--moniker
as required flags instead of validating them manually.Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
Wrote tests
Updated relevant documentation (
docs/
)Added entries in
PENDING.md
with issue #rereviewed
Files changed
in the github PR explorerFor Admin Use: