proto: add proto files for ibc unblock#4853
Conversation
|
👋 Thanks for creating a PR! Before we can merge this PR, please make sure that all the following items have been
Thank you for your contribution to Tendermint! 🚀 |
|
@fedekunze @cwgoes does this look good for what is needed? I added all the types which are used in the light clients |
Codecov Report
@@ Coverage Diff @@
## master #4853 +/- ##
==========================================
- Coverage 63.56% 63.06% -0.51%
==========================================
Files 225 176 -49
Lines 21135 16018 -5117
==========================================
- Hits 13435 10101 -3334
+ Misses 6607 5091 -1516
+ Partials 1093 826 -267
|
fedekunze
left a comment
There was a problem hiding this comment.
LGTM in general. Thanks Marko. The only type missing is tmmath.Fraction. Can you add that too? 🙏
I believe you will have to add this in the sdk. We do not encode tmmath.Fraction and I would want to avoid having prototypes for things that we do not encode. |
|
found some bugs in this PR while thinking about proto yesterday. Writing some tests that help fix them |
😲 |
|
|
||
| // ToProto converts SignedHeader to protobuf | ||
| func (sh *SignedHeader) ToProto() *tmproto.SignedHeader { | ||
| if sh == nil { |
There was a problem hiding this comment.
in usage, it may not be possible but while testing it was an issue so I decided to include it
| } | ||
|
|
||
| psh := new(tmproto.SignedHeader) | ||
| if sh.Header != nil { |
There was a problem hiding this comment.
this is not possible imho (if Tendermint works correctly)
There was a problem hiding this comment.
I do think having the case may be good. It may not be possible but to test this func and get the correct output I do need to check this
|
thanks @marbar3778! Will this PR be included in the next release? |
|
yes it will be. We will be working on creating a release in the coming days |
these proto files are meant to help unblock ibc in their quest of migrating the ibc module to proto. Closes: #XXX
these proto files are meant to help unblock ibc in their quest of migrating the ibc module to proto. Closes: #XXX
|
This PR is already done, but I have a question. ToProto() and FromProto() functions that convert between |
|
yes they have been added. you can find them here: Line 133 in dedf0d2 |
Oh, thank you. That's right. |
Description
these proto files are meant to help unblock ibc in their quest of migrating the ibc module to proto.
Closes: #XXX