tendermint / spn

A blockchain to launch blockchains.
Other
112 stars 43 forks source link

Add metadata for `spn` in `bank` #761

Closed lumtis closed 2 years ago

lumtis commented 2 years ago

atom metadata on the hub:

metadatas:
- base: uatom
  denom_units:
  - aliases:
    - microatom
    denom: uatom
    exponent: 0
  - aliases:
    - milliatom
    denom: matom
    exponent: 3
  - aliases: []
    denom: atom
    exponent: 6
  description: The native staking token of the Cosmos Hub.
  display: atom
  name: ""
  symbol: ""

We should implement the same with spn/mspn/uspn

aljo242 commented 2 years ago

The main mechanism for setting DenomMetadata is through the x/bank genesis as seen here.

So, we just need to add this metadata to our template and final genesis for mainnet. Are we able to add this with the existing template (config.yml)?

lumtis commented 2 years ago

Yes you can define any genesis state from config.yml

lumtis commented 2 years ago

Hey @aljo242, anything new on this one?

Front-end team might need it

aljo242 commented 2 years ago

Ah, I thought this was less urgent so I just started working on the claim module. I'll do this PR soon.

lumtis commented 2 years ago

I wasn't aware until recently