-
Notifications
You must be signed in to change notification settings - Fork 609
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
CLI: Query pools by coin denom #6766
CLI: Query pools by coin denom #6766
Conversation
|
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.
hey @DongLieu! Thank you for tackling this issue. And thanks for attaching logs to the PR.
Could you please also include a unit test for this query?
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! Left some comments, please take a look!
Co-authored-by: Ruslan Akhtariev <46343690+pysel@users.noreply.github.com>
Co-authored-by: Ruslan Akhtariev <46343690+pysel@users.noreply.github.com>
Co-authored-by: Ruslan Akhtariev <46343690+pysel@users.noreply.github.com>
Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com>
Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com>
Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com>
Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com>
Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com>
@DongLieu Can we also add changelog for this? |
Thanks @mattverse and @pysel for your review. |
Hey, to make it easier for the following issues, can you add me to the repo? |
I mean I can't push my branch to osmosis |
I cannot do that unfortunately. For the sake of this PR, could you please run |
If it continues failing, happy to merge it and then run make proto-all after wards, no worries |
I tried pulling main from osmosis and merging, then running 'make proto-all' but no change. So I thought it was my laptop's fault, but thanks to @hieuvubk help, it's still the same. |
I added test for func @mattverse |
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
@DongLieu Would you be able to add a case that includes CL pools? After that I think we should be good to merge
x/poolmanager/router_test.go
Outdated
expectedNumPools: 0, | ||
}, | ||
"Many pools": { | ||
poolType: []types.PoolType{types.Balancer, types.Balancer, types.Balancer, types.Balancer}, |
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.
Can we also test with CL?
Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com>
Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com>
I added. Is it exactly what you wanted? @mattverse |
@DongLieu awesome thanks! Will leave this PR open incase anyone wants to give it extra review, will merge this by EOW o.w |
* Add Cli query pools by denom * revert * minor * minor * Update x/poolmanager/client/query_proto_wrap.go Co-authored-by: Ruslan Akhtariev <46343690+pysel@users.noreply.github.com> * Update x/poolmanager/client/query_proto_wrap.go Co-authored-by: Ruslan Akhtariev <46343690+pysel@users.noreply.github.com> * Update x/poolmanager/router.go Co-authored-by: Ruslan Akhtariev <46343690+pysel@users.noreply.github.com> * Update proto/osmosis/poolmanager/v1beta1/query.proto Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com> * Update x/poolmanager/router.go Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com> * Update proto/osmosis/poolmanager/v1beta1/query.proto Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com> * Update x/poolmanager/router.go Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com> * Update x/poolmanager/router.go Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com> * minor and lint * Use dynamic slice instead of Allocate the slice * changelog * make proto-gen * lint proto * add test * Update x/poolmanager/router_test.go Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com> * Update x/poolmanager/router_test.go Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com> * make proto-all * use a few poolType Concentrated --------- Co-authored-by: Ruslan Akhtariev <46343690+pysel@users.noreply.github.com> Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com> Co-authored-by: Hieu Vu <72878483+hieuvubk@users.noreply.github.com>
Closes: #6712
What is the purpose of the change
(E.g.: This pull request improves documentation of area A by adding ....
Testing and Verifying
(Please pick one of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Documentation and Release Note
Unreleased
section ofCHANGELOG.md
?Where is the change documented?
x/{module}/README.md
)