Created
April 17, 2023 17:22
-
-
Save thiagozs/6ff38d468aac8087e6f587fbd76ae0f3 to your computer and use it in GitHub Desktop.
=Cosmos scripts bootstrap
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
#!/bin/bash | |
rm -r ~/.simapp | |
cd ~/workspace/cosmos-sdk | |
./build/simd tendermint unsafe-reset-all | |
./build/simd init demo | |
./build/simd keys --keyring-backend test add b9lab | |
./build/simd add-genesis-account --keyring-backend test b9lab 100000000stake | |
./build/simd gentx --keyring-backend test b9lab 70000000stake --chain-id $(jq -r '.chain_id' ~/.simapp/config/genesis.json) | |
./build/simd collect-gentxs | |
./build/simd start | |
cd - |
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
#!/bin/bash | |
FOLDER=~/.simapp1 | |
FOLDER_CFG=$FOLDER/config | |
COSMOS_FOLDER=~/workspace/cosmos-sdk | |
GRPC_WEB_ADDRS=127.0.0.1:8181 | |
GRPC_ADDRS=127.0.0.1:8182 | |
P2P_LADDRS=tcp://127.0.0.1:26677 | |
RPC_LADDRS=tcp://127.0.0.1:26678 | |
RPC_PPROF_LADDRS=127.0.0.1:6061 | |
TENDERMINT=$($COSMOS_FOLDER/build/simd tendermint show-node-id) | |
P2P_PERSISTENT_PEERS=$TENDERMINT@127.0.0.1:26656 | |
$USER=b9lab1 | |
rm -fr $FOLDER | |
mkdir -p $FOLDER_CFG | |
cd $COSMOS_FOLDER | |
./build/simd init demo1 --home=$FOLDER | |
./build/simd keys --keyring-backend test add $USER --home=$FOLDER | |
cp ~/.simapp/config/genesis.json $FOLDER_CFG | |
./build/simd start --home=$FOLDER \ | |
--grpc-web.address=$GRPC_WEB_ADDRS \ | |
--grpc.address=$GRPC_ADDRS \ | |
--p2p.laddr=$P2P_LADDRS \ | |
--rpc.laddr=$RPC_LADDRS \ | |
--rpc.pprof_laddr=$RPC_PPROF_LADDRS \ | |
--p2p.seeds=$P2P_PERSISTENT_PEERS | |
cd - |
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
#!/bin/bash | |
FOLDER=~/.simapp2 | |
FOLDER_CFG=$FOLDER/config | |
COSMOS_FOLDER=~/workspace/cosmos-sdk | |
GRPC_WEB_ADDRS=127.0.0.1:9191 | |
GRPC_ADDRS=127.0.0.1:9192 | |
P2P_LADDRS=tcp://127.0.0.1:26667 | |
RPC_LADDRS=tcp://127.0.0.1:26668 | |
RPC_PPROF_LADDRS=127.0.0.1:6062 | |
TENDERMINT=$($COSMOS_FOLDER/build/simd tendermint show-node-id) | |
P2P_PERSISTENT_PEERS=$TENDERMINT@127.0.0.1:26656 | |
$USER=b9lab2 | |
rm -fr $FOLDER | |
mkdir -p $FOLDER_CFG | |
cd $COSMOS_FOLDER | |
./build/simd init demo1 --home=$FOLDER | |
./build/simd keys --keyring-backend test add $USER --home=$FOLDER | |
cp ~/.simapp/config/genesis.json $FOLDER_CFG | |
./build/simd start --home=$FOLDER \ | |
--grpc-web.address=$GRPC_WEB_ADDRS \ | |
--grpc.address=$GRPC_ADDRS \ | |
--p2p.laddr=$P2P_LADDRS \ | |
--rpc.laddr=$RPC_LADDRS \ | |
--rpc.pprof_laddr=$RPC_PPROF_LADDRS \ | |
--p2p.seeds=$P2P_PERSISTENT_PEERS | |
cd - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment