-
Notifications
You must be signed in to change notification settings - Fork 106
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
types: Add AllDenomMetadata BankQuery #409
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.
LGTM. We just need the response type here (see https://github.com/CosmWasm/wasmvm/pull/337/files for an exampe of a new query added to this repo).
Thanks @webmaster128. Just reposting the same comment I left on my corresponding
|
Yeah, this is not super obvious. But the cosmwasm-std/wasmvm communication interface (i.e. the two side of the JSON communication) are all defined here. Maybe we can find a way to enforce more type-safety for wasmd such that the type is actually used here. |
@webmaster128 added all the types in wasmvm as part of this PR. Adding these is a bit of a tedious process since we need to
I am still of the opinion that there's no reason to have these types in |
4197862
to
4669071
Compare
4669071
to
3013e81
Compare
@webmaster128 could you please take another look at this PR and the related ones? I'd love to get these changes merged in! |
Absolutely. Plese note that because of https://forum.cosmos.network/t/upcoming-cosmwasm-security-patch-codename-cherry/10474 all CosmWasm 1.3 tickets are currently de-prioritized. We'll pick this up as soon as possible. |
We are currently discussing internally how the pagination should be handled. So far we do not expose any API with pagination to smart contract developers. How many entries do you expect in the chains that you are working with? |
@webmaster128 it would be any number - we'd like this cosmwasm API to work with any chain that supports cosmwasm. Not all chains have denom metadata populated, but some have a lot (@alpe mentioned that Osmosis has >970 entries). Some chains also have implemented token factories, which means there could be a very high number of denom-metadata entries. |
@webmaster128 Any updates from discussions on your end? |
Closing in favor of #430. Thank you @chipshort! |
Please review these related PRs in tandem: