LikeChain is a blockchain built on the Cosmos SDK.
- At least 20 GB disk space
- Docker
- Docker Compose
Run ./scripts/build.sh
.
- Initialize keys by running
./scripts/init.sh [moniker] [path-to-genesis.json] [persistent-node]
, wheremoniker
is the custom identifier of your node,path-to-genesis.json
is the path togenesis.json
, andpersistent-node
is the node ID and IP address of the test node.
Example: ./scripts/init.sh chung ~/Downloads/genesis-likechain-cosmos-testnet-1.json '[email protected]:26656'
-
After step 1, a Cosmos address for the validator will be initialized. Send the address to us and we will send some token into the account for staking.
-
Start the node by running
docker-compose up -d
. Note that the node is still not a validator, you need to stake the token after receiving it from us for becoming a validator. -
After receiving tokens, you can stake them by running
./scripts/staking.sh
.
- Setup or reset the one node local testnet by running
./dev/testnet-local.sh
. - Use the
docker-compose.yml
indev
to run a local server with light client. - When code is updated and
go.mod
andgo.sum
are not updated, you can use./docker/app/build.sh
to quickly rebuild the image.