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

fix: make client response fields public + remove reduntant QueryConnectionChannelsRequest #1139

Merged

Conversation

Farhad-Shabani
Copy link
Member

Closes: #XXX

Description

As a follow-up to PR #1129, this PR fixes some small inconsistencies.


PR author checklist:

  • Tagged one reviewer who will be the one responsible for shepherding this PR.

Reviewer checklist:

  • Reviewed Files changed in the GitHub PR explorer.
  • Manually tested (in case integration/unit/mock tests are absent).

@Farhad-Shabani Farhad-Shabani added this to the 0.51.0 milestone Mar 23, 2024
@Farhad-Shabani Farhad-Shabani marked this pull request as ready for review March 24, 2024 00:00
Copy link

codecov bot commented Mar 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.06%. Comparing base (49e907a) to head (984f5cd).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1139      +/-   ##
==========================================
+ Coverage   64.02%   64.06%   +0.03%     
==========================================
  Files         217      217              
  Lines       21061    21049      -12     
==========================================
  Hits        13484    13484              
+ Misses       7577     7565      -12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rnbguy
Copy link
Member

rnbguy commented Mar 25, 2024

Good catches! Additionally, I realized:

  • impl Protobuf<RawType> for DomainType is not required.
  • request.rs only requires impl TryFrom<RawType> for DomainType.
  • response.rs only requires impl From<DomainType> for RawType.

@Farhad-Shabani
Copy link
Member Author

Good catches! Additionally, I realized:

  • impl Protobuf<RawType> for DomainType is not required.
  • request.rs only requires impl TryFrom<RawType> for DomainType.
  • response.rs only requires impl From<DomainType> for RawType.

From the host's perspective, we definitely only need the conversion direction you mentioned. However, it's crucial that these types also cater to relayers, so we'll need to ensure the other direction is well-supported too.

Regarding Protobuf, I'm still leaning towards implementing it because it offers integrators convenient access to some useful encode/decode methods.

@rnbguy
Copy link
Member

rnbguy commented Mar 25, 2024

it's crucial that these types also cater to relayers

Regarding Protobuf, I'm still leaning towards implementing it because it offers integrators convenient access to some useful encode/decode methods.

Ah. I see. In that case, I am totally fine implementing these. But I mentioned this because this requirement is not maintained for all domain<>raw types.

Shouldn't we implement impl Protobuf<RawType> for DomainType for all?

@Farhad-Shabani
Copy link
Member Author

Shouldn't we implement impl Protobuf<RawType> for DomainType for all?

Correct. Currently, we haven't been able to implement that for all cases. I've explained the reason in the ibc-query's README.
We are in discussions with the ibc-go team to update the request protobuf definitions, incorporating the query height in relevant types. Therefore, we'll need to wait until that change is applied.

Copy link
Member

@rnbguy rnbguy left a comment

Choose a reason for hiding this comment

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

LGTM ✨

@rnbguy
Copy link
Member

rnbguy commented Mar 25, 2024

@Farhad-Shabani Thanks for your responses. Now everything is good 🙂

@Farhad-Shabani Farhad-Shabani merged commit aa9c9a8 into main Mar 25, 2024
15 checks passed
@Farhad-Shabani Farhad-Shabani deleted the farhad/make-client-query-response-fields-public branch March 25, 2024 16:33
Farhad-Shabani added a commit that referenced this pull request Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants