Skip to content
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

Feature Request: Enable Stargate queries for custom modules #587

Open
pyncz opened this issue Aug 22, 2024 · 0 comments
Open

Feature Request: Enable Stargate queries for custom modules #587

pyncz opened this issue Aug 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@pyncz
Copy link
Member

pyncz commented Aug 22, 2024

Among the custom modules, only the archway.cwerrors.v1.Query/Errors Stargate query is enabled to be used from smart contracts. Having them available is important to allow building more sophisticated contracts.

From my experience, that issue limited the use of the callback module, since currently there's no way to query the estimated fee to be attached to the registration msg (QueryEstimateCallbackFeesRequest query). It still can be queried from outside the contract (e.g. from a frontend), but it's not the case if you have recurring automated registrations.

Exposing the Params query would be useful as well, at least to validate the automation intervals against the max_future_reservation_limit module param.

But it's not just about callback module ofc, I'm sure it will be a useful to whitelist queries for all the custom modules, if they are safe to use from cosmwasm.

@pyncz pyncz added the enhancement New feature or request label Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant