0g-chain/README.md

65 lines
2.2 KiB
Markdown
Raw Normal View History

2019-06-20 18:16:57 +00:00
<p align="center">
2019-06-20 18:19:38 +00:00
<img src="./kava-logo.svg" width="300">
2019-06-20 18:16:57 +00:00
</p>
<h3 align="center">DeFi for Crypto.</h3>
<div align="center">
[![Go Report Card](https://goreportcard.com/badge/github.com/kava-labs/kava)](https://goreportcard.com/report/github.com/kava-labs/kava)
[![API Reference](https://godoc.org/github.com/Kava-Labs/kava?status.svg)](https://godoc.org/github.com/Kava-Labs/kava)
[![GitHub](https://img.shields.io/github/license/kava-labs/kava.svg)](https://github.com/Kava-Labs/kava/blob/master/LICENSE.md)
[![Twitter Follow](https://img.shields.io/twitter/follow/kava_labs.svg?label=Follow&style=social)](https://twitter.com/kava_labs)
2019-06-21 16:08:59 +00:00
[![riot.im](https://img.shields.io/badge/riot.im-JOIN%20CHAT-green.svg)](https://riot.im/app/#/room/#kava-validators:matrix.org)
2019-06-20 18:16:57 +00:00
</div>
<div align="center">
2019-06-27 21:32:43 +00:00
### [Telegram](https://t.me/kavalabs) | [Medium](https://medium.com/kava-labs) | [Validator Chat](https://riot.im/app/#/room/#kava-validators:matrix.org)
### Participate in the Kava testnet and [snag a founder badge](./docs/REWARDS.md)!
2019-06-20 18:16:57 +00:00
</div>
2019-06-21 16:08:59 +00:00
## Installing
This guide assumes you have worked with `cosmos-sdk` blockchains previously. If you are just getting started, great! See the complete guide [here](https://medium.com/kava-labs).
#### Installing KVD
```
git clone https://github.com/Kava-Labs/kava.git
cd kava
# Ensure GO Modules are enabled
export GO111MODULE=on
2019-07-02 21:31:10 +00:00
make install
2019-06-21 16:08:59 +00:00
```
#### Create a Wallet
2019-06-27 21:32:43 +00:00
2019-06-21 16:08:59 +00:00
```
2019-07-26 22:27:57 +00:00
kvd init --chain-id=kava-testnet-2000 <your-moniker>
2019-06-21 16:08:59 +00:00
kvcli keys add <your_wallet_name>
```
**Be sure to back up your mnemonic!**
#### Create a Genesis Transaction
2019-06-27 21:32:43 +00:00
2019-06-21 16:08:59 +00:00
```
2019-07-26 22:10:15 +00:00
kvd add-genesis-account $(kvcli keys show <your_wallet_name> -a) 1000000000000ukava
kvd gentx --name <your_wallet_name> --amount 1000000000000ukava --ip <your-public-ip>
2019-06-21 16:08:59 +00:00
```
A genesis transaction should be written to `$HOME/.kvd/config/gentx/gentx-<gen_tx_hash>.json`
#### Submit Genesis Transaction
2019-06-27 21:32:43 +00:00
2019-07-26 22:10:15 +00:00
To be included in the genesis file for testnet two, fork the [testnets repo](https://github.com/Kava-Labs/kava-testnets) and copy your genesis transaction to the `2000` directory. Submit your fork including your genesis transaction as a PR.
2019-06-21 16:08:59 +00:00
2019-06-20 18:16:57 +00:00
## License
Copyright © Kava Labs, Inc. All rights reserved.
2019-06-24 20:00:30 +00:00
Licensed under the [Apache v2 License](LICENSE).