osmosis
osmosis copied to clipboard
RE: Enable Whitelist Stargate Query
Closes: https://github.com/osmosis-labs/osmosis/pull/2190 Closes: https://github.com/osmosis-labs/osmosis/pull/2098
What is the purpose of the change
Add whitelisted stargate queries and ensure deterministic query. The difference of this PR with the previous PR(#2190) is that we json marshal the responses, not proto marshalling them. Test cases have been also been updated for this accordingly, tested and confirmed that this way of enabling stargate queries work via sample contract (https://github.com/osmosis-labs/swaprouter)
Brief Changelog
- Enable Stargate Query
Testing and Verifying
Tested locally and confrimed that this way of whitelisting works contract side by deploying contract with this commit.
Also added go test to ensure we're safe with json marshalling.
Documentation and Release Note
- Does this pull request introduce a new feature or user-facing behavior changes? yes
- Is a relevant changelog entry added to the
Unreleasedsection inCHANGELOG.md? yes