cli icon indicating copy to clipboard operation
cli copied to clipboard

`init`/`join` UX improvements

Open fadeev opened this issue 3 years ago • 1 comments

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.jsonapp_state.staking.params.bond_denom
  • Use 10000000$bond_denom (where $bond_denom is the value above) as self-delegation
ignite network chain join 42
  • Get the denom from $DATA/config/genesis.jsonapp_state.staking.params.bond_denom
  • Use 12000000$bond_denom (where $bond_denom is the value above) as an amount to request from the coordinator.

fadeev avatar Jun 06 '22 12:06 fadeev

@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

ivanovpetr avatar Jun 20 '22 10:06 ivanovpetr

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

lumtis avatar Oct 05 '22 02:10 lumtis