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

Final IBC migration and Amino removal #7157

Merged
merged 4 commits into from
Aug 25, 2020
Merged

Conversation

colin-axner
Copy link
Contributor

@colin-axner colin-axner commented Aug 25, 2020

Description

Migrates TM messages to proto, changes evidence and headers to pointers, removes amino in all places except the client (cli and utils). Cli and utils are non-trivial to remove because I'm not sure how parsing ABCI queries works with proto. Trying to change it now would be untested and just a temporary fix to remove amino entirely. I think it is fine to just add this issue to the cli refactor issue. I think the amino reference issue can be closed though.

closes: #6566


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

@@ -103,7 +101,6 @@ message Evidence {
message Header {
.tendermint.types.SignedHeader signed_header = 1 [
(gogoproto.embed) = true,
(gogoproto.nullable) = false,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I realize looking at the diffs that maybe making the signed header a pointer isn't necessary. Thoughts? Should I switch back?

Copy link
Collaborator

Choose a reason for hiding this comment

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

if we use a pointer we should add test cases to check for nil

evidenceexported "github.com/cosmos/cosmos-sdk/x/evidence/exported"
clientexported "github.com/cosmos/cosmos-sdk/x/ibc/02-client/exported"
)

// RegisterCodec registers the necessary x/ibc/07-tendermint interfaces and conrete types
// on the provided Amino codec. These types are used for Amino JSON serialization.
func RegisterCodec(cdc *codec.LegacyAmino) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

❤️

"github.com/cosmos/cosmos-sdk/x/ibc/keeper"
)

type KeeperTestSuite struct {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

there is no tests in this directory so I thought might as well delete this file

@codecov
Copy link

codecov bot commented Aug 25, 2020

Codecov Report

Merging #7157 into master will decrease coverage by 0.77%.
The diff coverage is 44.91%.

@@            Coverage Diff             @@
##           master    #7157      +/-   ##
==========================================
- Coverage   55.60%   54.82%   -0.78%     
==========================================
  Files         457      561     +104     
  Lines       27440    38327   +10887     
==========================================
+ Hits        15257    21012    +5755     
- Misses      11083    15604    +4521     
- Partials     1100     1711     +611     

Copy link
Collaborator

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

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

ACK. I can work on the removal from the client and utils

@fedekunze
Copy link
Collaborator

I will start working on #7155, and I need this to work on the migration. Is it ok if we merge it and address the remaining reviews on a follow-up PR?

@fedekunze fedekunze merged commit 1f7a278 into master Aug 25, 2020
@fedekunze fedekunze deleted the colin/final-migration branch August 25, 2020 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove all references to Amino in IBC verification
2 participants