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

feat: denom metadata #799

Merged
merged 2 commits into from
May 17, 2022
Merged

feat: denom metadata #799

merged 2 commits into from
May 17, 2022

Conversation

aljo242
Copy link
Contributor

@aljo242 aljo242 commented May 16, 2022

Closes #761

What does this PR does?

Update the config.yml to add denom metadata to the chain.

How to test

  • inspect the genesis state after running ignite chain serve
      "denom_metadata": [
        {
          "description": "The native staking token of Starport Network",
          "denom_units": [
            {
              "denom": "uspn",
              "exponent": 0,
              "aliases": [
                "millispn"
              ]
            },
            {
              "denom": "mspn",
              "exponent": 3,
              "aliases": [
                "microspn"
              ]
            },
            {
              "denom": "spn",
              "exponent": 6,
              "aliases": []
            }
          ],
          "base": "uspn",
          "display": "spn",
          "name": "Starport Network",
          "symbol": "SPN"
        }
      ]
    },
  • query
spnd query bank denom-metadata
metadatas:
- base: uspn
  denom_units:
  - aliases:
    - millispn
    denom: uspn
    exponent: 0
  - aliases:
    - microspn
    denom: mspn
    exponent: 3
  - aliases: []
    denom: spn
    exponent: 6
  description: The native staking token of Starport Network
  display: spn
  name: Starport Network
  symbol: SPN
pagination:
  next_key: null
  total: "1"

@aljo242 aljo242 changed the title Feat/denom metadata feat: denom metadata May 16, 2022
@codecov
Copy link

codecov bot commented May 16, 2022

Codecov Report

Merging #799 (2e9410b) into develop (9e38ac7) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #799   +/-   ##
========================================
  Coverage    10.56%   10.56%           
========================================
  Files          315      315           
  Lines        73466    73466           
========================================
+ Hits          7760     7763    +3     
+ Misses       65519    65517    -2     
+ Partials       187      186    -1     
Impacted Files Coverage Δ
x/campaign/simulation/store.go 84.45% <0.00%> (+2.02%) ⬆️

@lumtis lumtis merged commit 4719dbb into develop May 17, 2022
@lumtis lumtis deleted the feat/denom-metadata branch May 17, 2022 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add metadata for spn in bank
2 participants