genesis-wrapper

module
v0.0.0-...-d770fd4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2022 License: Apache-2.0

README

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

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL