Cosmos-sdk: Query for all available denoms of a network

Created on 14 Jan 2019  Â·  12Comments  Â·  Source: cosmos/cosmos-sdk

Summary

I want to show users all denoms available on a network. Currently I need to parse the genesis for this. It would be nicer to just be able to query this from the stargate. This way the frontend doesn't need to know about the genesis and therefor is a lot more flexibel.

Problem Definition

Proposal


For Admin Use

  • [ ] Not duplicate issue
  • [ ] Appropriate labels applied
  • [ ] Appropriate contributors tagged
  • [ ] Contributor assigned/self-assigned
Legacy API REST proposal-accepted

All 12 comments

+++

I think this is something we need to have. Which module would this likely live in? auth or bank?

Something that might be covered via @sunnya97's bank supply PR?

@sunnya97 ping

We decided to push that bank work to #postlaunch This will need to be a separate PR.

The easiest way to do this would be to copy the bank store stuff from that PR, but don't the Supply stuff, just the denom names (and probably the decimals).

Voyager will always need to have the genesis anyways, because it's the root-of-trust for lite client proofs.

We don't have lite client proofs right now.

Christopher Goes notifications@github.com schrieb am Di., 22. Jan. 2019
um 19:14 Uhr:

Voyager will always need to have the genesis anyways, because it's the
root-of-trust for lite client proofs.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cosmos/cosmos-sdk/issues/3293#issuecomment-456504752,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFmO2TTZ5AHmwxgVNCV3jh3NiyBWIJfsks5vF1UEgaJpZM4Z-T-x
.

Yes, but we'll need it later when we do (I don't disagree with the REST endpoint though).

the supply module will support this query

closed via #4255

@faboweb for your reference

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ValarDragon picture ValarDragon  Â·  3Comments

rigelrozanski picture rigelrozanski  Â·  3Comments

mossid picture mossid  Â·  3Comments

faboweb picture faboweb  Â·  3Comments

fedekunze picture fedekunze  Â·  3Comments