-
Notifications
You must be signed in to change notification settings - Fork 332
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
ClientState implementation with DomainTypes #247
Conversation
Looks great! Here is the flow:
So I think it would be nice to have here also the |
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.
Looks neat, I like the DomainTypes idea!
So, my original focus for this PR was to agree on the method and then get rid of the TryFromRaw trait. As discussed today, the implemented structs are so urgent for Anca that we're going to finalize this PR without getting all the other work done. (These structs are done, so this is a complete PR.) I'm happy to discuss the Msg trait and the structs involved in a new issue. I believe we should be careful creating new traits (especially if they relate to an already existing trait) but I don't yet have the full context to understand everything. I'll finish up the query code and ask for reviews. |
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.
🚀 Thanks Greg!
* ClientState implementation with DomainTypes * abci_query introduced
Part of #249. Not the full implementation yet, but this piece of code is ready to be used.
First stab at implementing DomainTypes in IBC.
Chain::query2
function that returnsVec<u8>
. The originalquery
should be replaced with this. (Showing it side-by-side for now.) Some chains might not want to use DomainTypes and they can still implementquery
this way because of the generalVec<u8>
return. Unfortunately, the disadvantage is that the decoding needs to be done at a higher level (see the AnyClientState query) but with DomainTypes, it's literally just calling onedecode_vec()
function.For contributor use:
docs/
) and code commentsFiles changed
in the Github PR explorer