-
Notifications
You must be signed in to change notification settings - Fork 138
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
feat: add provider info query #1164
Conversation
According to issue #1110, I only returned
|
Client state is not needed, only The issue states this as a nice to have:
I think you can get all the info needed using functions from
You may need to add those functions to the |
hi @MSalopek , i can get
|
Answered in a pair programming session. |
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 for the nice work!
Changes look good to me. One suggestion, I think in a few places there should be errors returned instead of nil. If you do really want to return nil there, I think you might want to add a comment explaining why.
Other than that, make sure to run make lint
locally, seems the CI linter is complaining
Pls fix the linter issues |
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.
LGTM
Not sure the mock is actually used?
@@ -8,6 +8,7 @@ Add an entry to the unreleased section whenever merging a PR to main that is not | |||
* (fix!) revert consumer packet data changes from #1037 [#1150](https://github.com/cosmos/interchain-security/pull/1150) | |||
* (fix!) proper deletion of pending packets [#1146](https://github.com/cosmos/interchain-security/pull/1146) | |||
* (feat!) optimize pending packets storage on consumer, with migration! [#1037](https://github.com/cosmos/interchain-security/pull/1037) | |||
* (feat) introduce the gRPC query `/interchain_security/ccv/consumer/provider-info` and CLI command `interchain-security-cd q ccvconsumer provider-info`to retrieve provider info from the consumer chain. |
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.
@yaruwangway please include a PR link next time
Description
Closes: #1110
a manual query in docker:
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if state-machine breaking change (i.e., requires coordinated upgrade)CHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change