Skip to content

crescent-network/genesis-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Genesis Wrapper

This repository is a tool to prepare genesis file for Crescent

Build

make install

Usage

Initialize chain and prepare genesis file

wrapper init test
wrapper prepare-genesis mainnet crescent-1

Testing (Reference)

Build

Git clone the crescent repository and build

git clone https://github.com/crescent-network/crescent.git
make install

Boostrap

BINARY=crescentd
CHAIN_ID=crescent-1
RPC_PORT=26657
GRPC_PORT=9090
ALICE="guard cream sadness conduct invite crumble clock pudding hole grit liar hotel maid produce squeeze return argue turtle know drive eight casino maze host"
BOB="friend excite rough reopen cover wheel spoon convince island path clean monkey play snow number walnut pull lock shoot hurry dream divide concert discover"
ALICE_COINS=1500000000000ucre,1000000000000000uatom,1000000000000000uusd
BOB_COINS=1500000000000ucre,1000000000000000uatom,1000000000000000uusd

echo $ALICE | $BINARY keys add alice --recover --keyring-backend=test 
echo $BOB | $BINARY keys add bob --recover --keyring-backend=test 
$BINARY add-genesis-account $($BINARY keys show alice --keyring-backend test -a) $ALICE_COINS 
$BINARY add-genesis-account $($BINARY keys show bob --keyring-backend test -a) $BOB_COINS 
$BINARY gentx alice 1000000000ucre --chain-id $CHAIN_ID --keyring-backend test
$BINARY collect-gentxs

sed -i '' 's/enable = false/enable = true/g' $HOME/.crescent/config/app.toml
sed -i '' 's/swagger = false/swagger = true/g' $HOME/.crescent/config/app.toml

$BINARY start