Skip to content

Commit

Permalink
feat: add testnet genesis (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoank101 authored Apr 29, 2024
1 parent d43cd3c commit 25e1602
Show file tree
Hide file tree
Showing 2 changed files with 478 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/run-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ $BINARY keys add $KEY1 --keyring-backend $KEYRING --home $HOME_DIR
$BINARY keys add $KEY2 --keyring-backend $KEYRING --home $HOME_DIR

# Allocate genesis accounts (cosmos formatted addresses)
$BINARY genesis add-genesis-account $KEY "1000000000000${DENOM}" --keyring-backend $KEYRING --home $HOME_DIR
$BINARY genesis add-genesis-account $KEY1 "1000000000000${DENOM}" --keyring-backend $KEYRING --home $HOME_DIR
$BINARY genesis add-genesis-account $KEY2 "1000000000000${DENOM}" --keyring-backend $KEYRING --home $HOME_DIR
$BINARY genesis add-genesis-account $KEY "1000000000000000${DENOM}" --keyring-backend $KEYRING --home $HOME_DIR
$BINARY genesis add-genesis-account $KEY1 "1000000000000000${DENOM}" --keyring-backend $KEYRING --home $HOME_DIR
$BINARY genesis add-genesis-account $KEY2 "1000000000000000${DENOM}" --keyring-backend $KEYRING --home $HOME_DIR

update_test_genesis '.app_state["gov"]["voting_params"]["voting_period"]="20s"'
update_test_genesis '.app_state["gov"]["voting_params"]["voting_period"]="600s"'
update_test_genesis '.app_state["mint"]["params"]["mint_denom"]="'$DENOM'"'
update_test_genesis '.app_state["gov"]["deposit_params"]["min_deposit"]=[{"denom":"'$DENOM'","amount": "1000000"}]'
update_test_genesis '.app_state["crisis"]["constant_fee"]={"denom":"'$DENOM'","amount":"1000"}'
Expand Down
Loading

0 comments on commit 25e1602

Please sign in to comment.