-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
…2874) Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 5.3.0 to 5.4.0. - [Release notes](https://github.com/docker/metadata-action/releases) - [Commits](docker/metadata-action@v5.3.0...v5.4.0) --- updated-dependencies: - dependency-name: docker/metadata-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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: