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

Query PoE contract addresses from contracts #168

Closed
alpe opened this issue Oct 27, 2021 · 0 comments · Fixed by #192
Closed

Query PoE contract addresses from contracts #168

alpe opened this issue Oct 27, 2021 · 0 comments · Fixed by #192
Labels
good first issue Good for newcomers

Comments

@alpe
Copy link
Contributor

alpe commented Oct 27, 2021

Add custom query to return address by type
Quick version of #129 limited to return PoE contract addresses

No need to restrict access to privileged contracts

Background:

Queries are defined in wasmvm QueryRequest type and bindings for the contracts.
They are executed within wasmd's plugin handler that has access to state and native modules to runs them.

In tgrade we extend the basic functionality for PoE or other new functionality via the custom message type.
The new handlers can be setup in app/wasm.go.
We don't have a custom-type handler yet but I hope you find some inspiration in the default wasmd handlers.

Not related to this task but as an example for custom messages that I have implemented: twasm/handler_plugin

@alpe alpe added this to the Tgrade 0.6 milestone Oct 27, 2021
@alpe alpe added the good first issue Good for newcomers label Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant