-
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
[CL]: Add swaprouter queries to stargate whitelist #3907
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.
Thank you! LGTM after the gamm queries are brought back.
wasmbinding/stargate_whitelist.go
Outdated
setWhitelistedQuery("/osmosis.gamm.v1beta1.Query/EstimateSwapExactAmountIn", &gammtypes.QuerySwapExactAmountInResponse{}) | ||
setWhitelistedQuery("/osmosis.gamm.v1beta1.Query/EstimateSwapExactAmountOut", &gammtypes.QuerySwapExactAmountOutResponse{}) |
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 still want to keep these to avoid breaking old contracts
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.
Brought them back for now, do we have further plans to deprecate them for the contracts though? I think it'd be awkward when in long term we support the two same queries but from different modules
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 would need to communicate with the integrators, asking whether anyone is using these.
If contracts are already utilizing some of these, removal from the stargate-whitelist wouldn't be easy so we might have to accept keeping these while there are production users.
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.
sad 😭
Co-authored-by: Roman <[email protected]>
I marked this as state-breaking to re-review before v15 since this touches the stargate whitelist. |
Closes: #3882
What is the purpose of the change
This PR adds swaprouter queries(namely
Numpools
,EstimateSwapExactAmountIn
,EstimateSwapExactAmountOut
) to stargate query whitelist.Documentation and Release Note
Unreleased
section inCHANGELOG.md
? yesx/<module>/spec/
) / Osmosis docs repo / not documented)