Skip to content
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

Update TxBuilder to use SignatureV2 #6443

Merged
merged 16 commits into from
Jun 16, 2020
Merged

Conversation

aaronc
Copy link
Member

@aaronc aaronc commented Jun 15, 2020

This is one of several bite-size PR's that are being pulled out of #6216 to implement #6213.

This PR:

  • updates client.TxBuilder to use SignatureV2 introduced in Add SignatureV2 infrastructure #6373
  • adds a sign-mode command-line flag
  • moves FeeTx and TxWithMemo from x/auth/ante to types to deal with cyclic dependency issues
  • moves LegacyAminoJSONHandler directly into x/auth/types to avoid cyclic dependencies

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.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

@codecov
Copy link

codecov bot commented Jun 15, 2020

Codecov Report

Merging #6443 into master will increase coverage by 0.09%.
The diff coverage is 53.24%.

@@            Coverage Diff             @@
##           master    #6443      +/-   ##
==========================================
+ Coverage   55.74%   55.83%   +0.09%     
==========================================
  Files         466      466              
  Lines       27890    27906      +16     
==========================================
+ Hits        15546    15582      +36     
+ Misses      11231    11210      -21     
- Partials     1113     1114       +1     

@aaronc aaronc marked this pull request as ready for review June 15, 2020 19:16
@aaronc aaronc added the R4R label Jun 15, 2020
Copy link
Collaborator

@anilcse anilcse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aaronc looks good, added a few comments

x/auth/types/client_tx.go Outdated Show resolved Hide resolved
client/tx/factory.go Outdated Show resolved Hide resolved
client/flags/flags.go Show resolved Hide resolved
client/tx/factory.go Show resolved Hide resolved
client/tx/tx.go Show resolved Hide resolved
x/auth/types/client_tx.go Show resolved Hide resolved
client/tx/factory.go Outdated Show resolved Hide resolved
client/tx/tx.go Outdated Show resolved Hide resolved
// StdTxBuilder wraps StdTx to implement to the context.TxBuilder interface
// StdTxBuilder wraps StdTx to implement to the context.TxBuilder interface.
// Note that this type just exists for backwards compatibility with amino StdTx
// and will not work for protobuf transactions.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file has low coverage and we should prob add unit tests on another PR

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree we should cover it better. @anilcse let's coordinate on a PR to test TxBuilder implementations generically.

@aaronc aaronc added the A:automerge Automatically merge PR once all prerequisites pass. label Jun 16, 2020
@mergify mergify bot merged commit c138090 into master Jun 16, 2020
@mergify mergify bot deleted the aaronc/6213-sig-v2-builder branch June 16, 2020 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants