cli
cli copied to clipboard
`init`/`join` UX improvements
Right now we're prompting users to provide an amount for self-delegation in init and a token amount to get in the join command.
For testnets, however, from a UX point of view, it's easier to use a default value, instead.
ignite network chain init 42
After the genesis.json is ready in the data directory init should:
- Get the denom from
$DATA/config/genesis.json→app_state.staking.params.bond_denom - Use
10000000$bond_denom(where$bond_denomis the value above) as self-delegation
ignite network chain join 42
- Get the denom from
$DATA/config/genesis.json→app_state.staking.params.bond_denom - Use
12000000$bond_denom(where$bond_denomis the value above) as an amount to request from the coordinator.
@fadeev Should we have an ability for testnets to tweak default values somehow? For example we can use flag ignite n chain init --self-delegation 10000000stake
Now that we can set a balance for every acocunt for a testnet, we can use this value for the self-delegation https://github.com/ignite/cli/issues/2883
If AccountBalance is not set I would consider keeping the current behavior