github.com/cosmos/cosmos-sdk@v0.50.10/scripts/init-simapp.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  SIMD_BIN=${SIMD_BIN:=$(which simd 2>/dev/null)}
     4  
     5  if [ -z "$SIMD_BIN" ]; then echo "SIMD_BIN is not set. Make sure to run make install before"; exit 1; fi
     6  echo "using $SIMD_BIN"
     7  if [ -d "$($SIMD_BIN config home)" ]; then rm -rv $($SIMD_BIN config home); fi
     8  $SIMD_BIN config set client chain-id demo
     9  $SIMD_BIN config set client keyring-backend test
    10  $SIMD_BIN config set app api.enable true
    11  $SIMD_BIN keys add alice
    12  $SIMD_BIN keys add bob
    13  $SIMD_BIN init test --chain-id demo
    14  $SIMD_BIN genesis add-genesis-account alice 5000000000stake --keyring-backend test
    15  $SIMD_BIN genesis add-genesis-account bob 5000000000stake --keyring-backend test
    16  $SIMD_BIN genesis gentx alice 1000000stake --chain-id demo
    17  $SIMD_BIN genesis collect-gentxs