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

Remove old tx code from rest #6939

Merged
merged 9 commits into from
Aug 5, 2020
Merged

Remove old tx code from rest #6939

merged 9 commits into from
Aug 5, 2020

Conversation

sahith-narahari
Copy link
Contributor

@sahith-narahari sahith-narahari commented Aug 4, 2020

Description

This PR removes old tx code from rest. I also updated x/ibc to use WriteGeneratedTxResponse. I'll do a followup PR to remove x/auth/types/TxBuilder
Ref: #6213


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
  • Review Codecov Report in the comment section below once CI passes

@codecov
Copy link

codecov bot commented Aug 4, 2020

Codecov Report

Merging #6939 into master will increase coverage by 3.44%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #6939      +/-   ##
==========================================
+ Coverage   61.80%   65.24%   +3.44%     
==========================================
  Files         521      391     -130     
  Lines       32166    24318    -7848     
==========================================
- Hits        19880    15867    -4013     
+ Misses      10672     7213    -3459     
+ Partials     1614     1238     -376     

@fedekunze
Copy link
Collaborator

@sahith-narahari you can delete the x/ibc ones too. AFAIK they are not used or tested at all

@sahith-narahari
Copy link
Contributor Author

@sahith-narahari you can delete the x/ibc ones too. AFAIK they are not used or tested at all

I updated x/ibc to use WriteGeneratedTxResponse over WriteGenerateStdTxResponse. Not sure what you meant by removing x/ibc ones

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.

looks good. Can you also clean up rest queries, for ref here: https://github.com/cosmos/cosmos-sdk/blob/master/x/bank/client/rest/query.go#L40-L41

Copy link
Contributor

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

lgtm, though the failing test needs to be fixed

@sahith-narahari sahith-narahari added the A:automerge Automatically merge PR once all prerequisites pass. label Aug 5, 2020
@mergify mergify bot merged commit 95cf3c9 into master Aug 5, 2020
@mergify mergify bot deleted the sahith/rest-tx-cleanup branch August 5, 2020 18:08
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.

5 participants