-
Notifications
You must be signed in to change notification settings - Fork 27
ref: Osmosis socket queries #971
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
base: main
Are you sure you want to change the base?
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| from_denom, | ||
| to_denom, | ||
| } => encode_binary(&query_get_route(deps, from_denom, to_denom)?), | ||
| QueryMsg::PoolInfo { creator } => { |
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.
We need to store pool info using factory denoms pair as 1 creator can create multiple pools
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.
One creator can also create multiple pools using the same denoms pair. I'm thinking a state of pool_id to pool info would be best.
And if the user forgot the pool's id, he can check using the PoolsCreated query
| SPENDER.remove(deps.storage); | ||
| let spender_and_params = SPENDER_AND_PARAMS.load(deps.storage)?; | ||
| SPENDER_AND_PARAMS.remove(deps.storage); | ||
|
|
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.
All the pool types will add the states to Pools Created and PoolQuery
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 you elaborate on this?
Motivation
Getting PoolId was difficult
Implementation
Testing
Was there any on-chain, or other types, of testing run with this change?
Version Changes
Checklist