-
Notifications
You must be signed in to change notification settings - Fork 601
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
refactor(poolmanager): GetPoolDenoms method on PoolI for SQS #6863
Conversation
@Mergifyio refresh |
✅ Pull request refreshed |
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.
Left some comments, please take a look!
x/poolmanager/types/pool.go
Outdated
@@ -2,7 +2,7 @@ package types | |||
|
|||
import ( | |||
sdk "github.com/cosmos/cosmos-sdk/types" | |||
proto "github.com/cosmos/gogoproto/proto" | |||
proto "github.com/gogo/protobuf/proto" |
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.
Just curious, what's the reason we're changing this from cosmos' gogo proto to the original one?
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.
Correct, we need to switch this back, good catch (was likely merge conflict)
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.
done
Mentioning here that I had issues with this method for cwpools on mainet |
What was the solution to the issue? |
@p0mvn I just changed the GetPools method on the cwpool side to return the keeper as well. It's in my draft PR for implementing the route query |
OK, thanks for getting back. I will then merge this, and let you fix the issue in your PR. |
OK tests added |
* refactor(poolmanager): GetPoolDenoms method on PoolI for SQS * changelog * mocks * change proto dep * transmuter pool * cfmm test * CL test (cherry picked from commit 4c54425) # Conflicts: # CHANGELOG.md
…#6863) (#6902) * refactor(poolmanager): GetPoolDenoms method on PoolI for SQS (#6863) * refactor(poolmanager): GetPoolDenoms method on PoolI for SQS * changelog * mocks * change proto dep * transmuter pool * cfmm test * CL test (cherry picked from commit 4c54425) # Conflicts: # CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md --------- Co-authored-by: Roman <[email protected]>
Closes: #XXX
What is the purpose of the change
Add GetPoolDenoms on PoolI interface in the poolmanager. Provide implementations for each pool.
This is useful for SQS.