-
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
Migrate x/auth cmd's to TxGenerator marshaling #6391
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6391 +/- ##
==========================================
+ Coverage 56.13% 56.26% +0.12%
==========================================
Files 467 469 +2
Lines 28061 28091 +30
==========================================
+ Hits 15753 15806 +53
+ Misses 11201 11170 -31
- Partials 1107 1115 +8 |
* fixed lint issue of "txEncodeRespStr" * added tests for encode.go * WIP: added tests for decode.go * added txEncoder at bytes * updated decode test * updated txBytes to use TxEncoder in decoder test * added a require after TxEncoder * removed file save * debug decode command * fixed decode tests * added decode cli * updated encode and decode in a single file * separated decode test from encode test * review changes * removed register interface * review change
…ronc/6213-cli-encode
@fedekunze @anilcse can we please postpone tests for @fedekunze can you take another look and see if it's alright to move forward with this PR with the understanding that this is part of a larger migration of those other commands. |
Still fixing one test btw... |
@fedekunze fixed tests and added |
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
@aaronc looks like a test is failing |
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.
Nice one! ACK'd - pending tests pass
* Migrate encode, decode, and broadcast cmd's to use TxGenerator marshal methods * Fix tests, add EncodingConfig * Add simapp/encoding.go and wire up with simcli * add godocs * fix tests * Debugging CLI Tests * Fix integration test * 6391 - lint issues and code coverage (cosmos#6414) * fixed lint issue of "txEncodeRespStr" * added tests for encode.go * WIP: added tests for decode.go * added txEncoder at bytes * updated decode test * updated txBytes to use TxEncoder in decoder test * added a require after TxEncoder * removed file save * debug decode command * fixed decode tests * added decode cli * updated encode and decode in a single file * separated decode test from encode test * review changes * removed register interface * review change * Fix tests * WIP add test for tx sign * removed commented code * Fix flags * WIP add test for sign * Address review suggestions * fixed command issue * Add tests for TxEncoder * Revert sign changes * Fix TxEncoder tests * Fix GetSign Cmd * Add tx test * Remove duplicate validation * Add tests for TxDecoder * Fix tests * Fix tests * Output to clientCtx.Output * Fix cli_tests Co-authored-by: atheeshp <[email protected]> Co-authored-by: atheesh <[email protected]> Co-authored-by: anilCSE <[email protected]> Co-authored-by: sahith-narahari <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This is one of several bite-size PR's that are being pulled out of #6216 to implement #6213.
Summary
This PR makes incremental progress on migrating the remaining
x/auth
CLI commands to the new infrastructure for protobuf as well as setting the foundation for #6190.Details
TxEncoder|Decoder
andTxJSONEncoder|Decoder
methods toTxGenerator
and removeMarshal
method.x/auth
encode
,decode
,broadcast
,sign
,multisign
, andvalidate-signatures
Cmd
's to use theTxGenerator
Encoder/Decoder
methodsEncodingConfig
struct andMakeEncodingConfig
methods tosimapp
andsimapp/params
to incrementally move towards Full amino encoding support #6190.std.Codec
(which is no longer needed because ofAny
) and replace withcodec.Marshaler
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorer