-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Conversation
@@ -103,7 +101,6 @@ message Evidence { | |||
message Header { | |||
.tendermint.types.SignedHeader signed_header = 1 [ | |||
(gogoproto.embed) = true, | |||
(gogoproto.nullable) = false, |
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.
I realize looking at the diffs that maybe making the signed header a pointer isn't necessary. Thoughts? Should I switch back?
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.
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) { |
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.
❤️
"github.com/cosmos/cosmos-sdk/x/ibc/keeper" | ||
) | ||
|
||
type KeeperTestSuite struct { |
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.
there is no tests in this directory so I thought might as well delete this file
Codecov Report
@@ 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 |
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.
ACK. I can work on the removal from the client and utils
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? |
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.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes