-
Notifications
You must be signed in to change notification settings - Fork 329
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
query connections given client id #151
Comments
#152 changes a lot of the underlying code and gives it the basics but validation is incomplete. There is a todo in the code to finish that. |
Implemented a good chunk of the logic to query client connections. But got stuck trying to figure out how to parse the result returned by the simapp. If I run simapp (docker version) and do the following command:
I get this result:
and the value decoded is
where it should be more like something
but then had some issues trying to implement the TryFromRaw trait for this. Need to put a bit more thinking on it. The current implementation compiles but if you run:
you get an empty response value
|
Found a way to parse the client connections response. If you use the command below (with docker simapp running):
It shows the client connections:
I think this issue can be closed. The only tweak that might need to do is to migrate a struct I've declared (RawClientConnections) in ics02_client/query.rs that probably should live in ibc-proto crate. |
* Implemented logic to query client connections #151 * Implemented a way to parse the client connections query response as a vector of string #151 * Added test for client connections query params #151 * Refactored TryFromRaw for Vec<String> as suggested on review #169 * Fixed comments and fixed command line example to test the query client connections #169 * Removing unused references #169
* Implemented logic to query client connections informalsystems#151 * Implemented a way to parse the client connections query response as a vector of string informalsystems#151 * Added test for client connections query params informalsystems#151 * Refactored TryFromRaw for Vec<String> as suggested on review informalsystems#169 * Fixed comments and fixed command line example to test the query client connections informalsystems#169 * Removing unused references informalsystems#169
Given a client id, query the list of connection identifiers.
This is an easy one that just returns a list of connection identifiers.
ABCIQuery.Path =
store/ibc/key
ABCIQuery.Data =
clients/{identifier}/connections
The text was updated successfully, but these errors were encountered: