Skip to content

Change default staking denom on chain scaffolding #1828

@lumtis

Description

@lumtis

New goal: #1828 (comment)


The current docs gives indication to modify the staking token denom: https://docs.starport.com/kb/genesis.html#change-values-in-modules

However, for many apps that use a single token for all module usages, different part of the genesis must be checked and modified

We should provide an option to easily modify these options in one place and set the "default token denom"

In config.yml

default-denom: "spn"

Would automatically set in the genesis:

genesis:
  app_state:
    staking:
      params:
        bond_denom: "spn"
    crisis:
      constant_fee:
        denom: "spn"
    gov:
      deposit_params:
        min_deposit:
          - "amount": "10000000"
            "denom": "spn"
    mint:
      params:
        mint_denom: "spn"

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions