forked from cosmos/ibc-go
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imp: add init-simapp script (cosmos#4844)
* feat: add init-simapp script * Apply suggestions from code review Co-authored-by: Damian Nolan <damiannolan@gmail.com> --------- Co-authored-by: Carlos Rodriguez <carlos@interchain.io> Co-authored-by: Damian Nolan <damiannolan@gmail.com> Co-authored-by: Jim Fasarakis-Hilliard <d.f.hilliard@gmail.com>
- Loading branch information
1 parent
2533acd
commit 52da9be
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
SIMD_BIN=${SIMD_BIN:=$(which simd 2>/dev/null)} | ||
|
||
if [ -z "$SIMD_BIN" ]; then echo "SIMD_BIN is not set. Make sure to run make install before"; exit 1; fi | ||
echo "using $SIMD_BIN" | ||
if [ -d "$($SIMD_BIN config home)" ]; then rm -r $($SIMD_BIN config home); fi | ||
$SIMD_BIN config set client chain-id simapp-1 | ||
$SIMD_BIN config set client keyring-backend test | ||
$SIMD_BIN config set app api.enable true | ||
$SIMD_BIN keys add alice | ||
$SIMD_BIN keys add bob | ||
$SIMD_BIN init test --chain-id simapp-1 | ||
$SIMD_BIN genesis add-genesis-account alice 5000000000stake --keyring-backend test | ||
$SIMD_BIN genesis add-genesis-account bob 5000000000stake --keyring-backend test | ||
$SIMD_BIN genesis gentx alice 1000000stake --chain-id simapp-1 | ||
$SIMD_BIN genesis collect-gentxs |