-
Notifications
You must be signed in to change notification settings - Fork 326
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
Ics04 packet recv write_ack ack #737
Conversation
Codecov Report
@@ Coverage Diff @@
## master informalsystems/hermes#737 +/- ##
=========================================
+ Coverage 13.6% 46.1% +32.4%
=========================================
Files 69 162 +93
Lines 3752 11007 +7255
Branches 1374 0 -1374
=========================================
+ Hits 513 5075 +4562
- Misses 2618 5932 +3314
+ Partials 621 0 -621
Continue to review full report at Codecov.
|
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.
Pushed some minor changes and left a couple comments and a suggestion.
- Renamed Ics4Msg into Ics4ChannelMsg - Renamed verify_proofs into verify_channel_proofs - Renamed verify_packet_proofs into verify_packet_recv_proofs - Renamed Ics04 dispatch method into channel_dispatch - Optimized imports in several modules of Ics04
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.
Cool work Cezara! I just added a few commits with some improvements. I think the PR is ready.
want_pass: true, | ||
}, | ||
Test { | ||
name: "Re-Receive packet".to_string(), |
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.
Nice.
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 good, especially the tests :) I only have a little comment, but we can follow-up on this in a later PR if you want. Approved preemptively just in case.
fn host_height(&self) -> Height; | ||
|
||
/// Returns the current timestamp of the local chain. | ||
fn host_timestamp(&self) -> u64; |
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.
We could introduce a newtype wrapper for the timestamp, here and in other places where we currently use a u64
, eg. a pub struct Timestamp { seconds: u64 }
in the host
module.
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.
* recv_packet file * Update client_def.rs * updates * packet * write ack * update recv host * receive packet * acknowledgement * receipt type * dispatch message update * Update acknowledgement.rs * Remove a few clones and fix some clippy warnings * Remove a few more clones * Changelog * Minor improvements * Added missing timeout_timestamp fields in converstion methods. * Typos and extra spaces * Cleanup & made some method names in Ics04 more accurate. - Renamed Ics4Msg into Ics4ChannelMsg - Renamed verify_proofs into verify_channel_proofs - Renamed verify_packet_proofs into verify_packet_recv_proofs - Renamed Ics04 dispatch method into channel_dispatch - Optimized imports in several modules of Ics04 * Added impl for with_height. Fixed recv_packet test Co-authored-by: Romain Ruetschi <[email protected]> Co-authored-by: Adi Seredinschi <[email protected]>
Closes: cosmos/ibc-rs#85
Description
For contributor use:
docs/
) and code comments.Files changed
in the Github PR explorer.