From 8b13eaf870c29a1f50d4033e9c697a448bdb7cd0 Mon Sep 17 00:00:00 2001 From: kaustubhkapatral Date: Sat, 20 Feb 2021 17:01:35 +0530 Subject: [PATCH] Added phase-2 instructions --- bigbang-1/phase-2/README.md | 135 +++++++++++++- bigbang-1/phase-2/genesis.json | 319 +++++++++++++++++++++++++++++++++ 2 files changed, 453 insertions(+), 1 deletion(-) create mode 100644 bigbang-1/phase-2/genesis.json diff --git a/bigbang-1/phase-2/README.md b/bigbang-1/phase-2/README.md index 2f2b748c..b8fd6234 100644 --- a/bigbang-1/phase-2/README.md +++ b/bigbang-1/phase-2/README.md @@ -1 +1,134 @@ -[TBD] \ No newline at end of file +# Phase-2 : Instructions + +## Software Requirements: +- Go version v1.15.+ + +## Useful Links +### Explorers: [Aneka](https://bigbang.aneka.io) [BigDipper](https://bigbang.bigdipper.live) +### Faucet: https://faucet.bigbang.vitwit.com + + +### Install Akash +``` +$ mkdir -p $GOPATH/src/github.com/ovrclk +$ cd $GOPATH/src/github.com/ovrclk +$ git clone https://github.com/ovrclk/akash && cd akash +$ git checkout v0.10.0-rc3 +$ make install +``` + +To verify if the installation was successful, execute the following command: +``` +$ akash version --long +``` +It will display the version of akashd currently installed: +``` +name: akash +server_name: akash +version: 0.10.0 +commit: af43b89e47e50bfeedcc35c7ee77229bd258ed0d +build_tags: netgo,ledger +go: go version go1.15.5 linux/amd64 +build_deps: +- github.com/99designs/keyring@v1.1.6 +- github.com/ChainSafe/go-schnorrkel@v0.0.0-20200405005733-88cbf1b4c40d +- github.com/Workiva/go-datastructures@v1.0.52 +... +``` + + +### Start your validator node +Follow the instructions below to start your validator node. + +#### Init Chain + ```shell + $ akash init --chain-id=bigbang-4 + ``` +#### Genesis & Seeds +Fetch `genesis.json` into `akashd`'s `config` directory. +``` +$ curl https://raw.githubusercontent.com/cosmos/testnets/master/bigbang-1/phase-2/genesis.json > $HOME/.akash/config/genesis.json +``` + +Add seed nodes in `config.toml`. + + +``` +$ nano $HOME/.akash/config/config.toml +``` +Find the following section and add the seed nodes. +``` +# Comma separated list of seed nodes to connect to +seeds = "31e5882c810f56b553a714bab79bf725a9bcd5e4@104.131.69.13:26656" +``` +``` +# Comma separated list of persistent peers to connect to +persistent_peers = "14789c286805f4d9883439d8c39c6846cdae4d4d@157.230.185.206:26656" // Witval peer +``` + +#### Start Your Node + +Create a systemd service + +```shell +echo "[Unit] +Description=Akash Node +After=network-online.target +[Service] +User=${USER} +ExecStart=$(which akash) start +Restart=always +RestartSec=3 +LimitNOFILE=4096 +[Install] +WantedBy=multi-user.target +" >akash.service +``` + +``` +$ sudo mv akash.service /lib/systemd/system/ +$ sudo systemctl daemon-reload +$ sudo systemctl enable akash.service +$ sudo systemctl start akash.service +``` +``` +$ sudo systemctl enable akash +$ sudo systemctl start akash +``` +Check node status +``` +$ systemctl status akash +``` +Check logs +``` +$ sudo journalctl -u akash -f +``` + +## Create Testnet Validator + +1. Create a local key pair in the Keyring + + ```shell + $ akash keys add + $ akash keys show -a + ``` + +3. Request tokens from faucet: https://faucet.bigbang.vitwit.com + +4. Create validator + + ```shell + $ akash tx staking create-validator \ + --amount 900000000uakt \ + --commission-max-change-rate "0.1" \ + --commission-max-rate "0.20" \ + --commission-rate "0.1" \ + --min-self-delegation "1" \ + --details "Some details about yourvalidator" \ + --pubkey=$(akashd tendermint show-validator) \ + --moniker \ + --chain-id bigbang-4 \ + --from + ``` + + diff --git a/bigbang-1/phase-2/genesis.json b/bigbang-1/phase-2/genesis.json new file mode 100644 index 00000000..a1390742 --- /dev/null +++ b/bigbang-1/phase-2/genesis.json @@ -0,0 +1,319 @@ +{ + "genesis_time": "2021-02-20T09:11:31.604915859Z", + "chain_id": "bigbang-4", + "initial_height": "1", + "consensus_params": { + "block": { + "max_bytes": "22020096", + "max_gas": "-1", + "time_iota_ms": "1000" + }, + "evidence": { + "max_age_num_blocks": "100000", + "max_age_duration": "172800000000000", + "max_bytes": "1048576" + }, + "validator": { + "pub_key_types": [ + "ed25519" + ] + }, + "version": {} + }, + "app_hash": "", + "app_state": { + "audit": { + "attributes": [] + }, + "auth": { + "params": { + "max_memo_characters": "256", + "tx_sig_limit": "7", + "tx_size_cost_per_byte": "10", + "sig_verify_cost_ed25519": "590", + "sig_verify_cost_secp256k1": "1000" + }, + "accounts": [ + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "akash13rseh9rs34ugqj9dg6q94qfm5e672k0tzvnyxs", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "akash1czxh6ewhuy00tsv5zu50gz7lz2cxcpufdrarty", + "pub_key": null, + "account_number": "0", + "sequence": "0" + } + ] + }, + "bank": { + "params": { + "send_enabled": [], + "default_send_enabled": true + }, + "balances": [ + { + "address": "akash13rseh9rs34ugqj9dg6q94qfm5e672k0tzvnyxs", + "coins": [ + { + "denom": "uakt", + "amount": "10000000000" + } + ] + }, + { + "address": "akash1czxh6ewhuy00tsv5zu50gz7lz2cxcpufdrarty", + "coins": [ + { + "denom": "uakt", + "amount": "100000000000000000" + } + ] + } + ], + "supply": [ + { + "denom": "uakt", + "amount": "100000010000000000" + } + ], + "denom_metadata": [] + }, + "capability": { + "index": "1", + "owners": [] + }, + "cert": { + "certificates": [] + }, + "crisis": { + "constant_fee": { + "denom": "uakt", + "amount": "1000" + } + }, + "deployment": { + "deployments": [], + "params": { + "deployment_min_deposit": { + "denom": "uakt", + "amount": "5000000" + } + } + }, + "distribution": { + "params": { + "community_tax": "0.020000000000000000", + "base_proposer_reward": "0.010000000000000000", + "bonus_proposer_reward": "0.040000000000000000", + "withdraw_addr_enabled": true + }, + "fee_pool": { + "community_pool": [] + }, + "delegator_withdraw_infos": [], + "previous_proposer": "", + "outstanding_rewards": [], + "validator_accumulated_commissions": [], + "validator_historical_rewards": [], + "validator_current_rewards": [], + "delegator_starting_infos": [], + "validator_slash_events": [] + }, + "escrow": { + "accounts": [], + "payments": [] + }, + "evidence": { + "evidence": [] + }, + "genutil": { + "gen_txs": [ + { + "body": { + "messages": [ + { + "@type": "/cosmos.staking.v1beta1.MsgCreateValidator", + "description": { + "moniker": "witval", + "identity": "", + "website": "", + "security_contact": "", + "details": "" + }, + "commission": { + "rate": "0.100000000000000000", + "max_rate": "0.200000000000000000", + "max_change_rate": "0.010000000000000000" + }, + "min_self_delegation": "1", + "delegator_address": "akash13rseh9rs34ugqj9dg6q94qfm5e672k0tzvnyxs", + "validator_address": "akashvaloper13rseh9rs34ugqj9dg6q94qfm5e672k0tgwazk6", + "pubkey": { + "@type": "/cosmos.crypto.ed25519.PubKey", + "key": "Udk0oTMfbousNF6PMv38JGELV5MgSffBDQcQsfUaJU4=" + }, + "value": { + "denom": "uakt", + "amount": "9000000000" + } + } + ], + "memo": "01c3cec2013dc1d5f8a04d60547b3e45dddf16da@159.89.50.218:26656", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/cosmos.crypto.secp256k1.PubKey", + "key": "AtNHjkjbqAOBX3Z2fqUowO/d/YQ46JlccFRnj9QTB3pW" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_DIRECT" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "200000", + "payer": "", + "granter": "" + } + }, + "signatures": [ + "A/X0KVBJNx/MlXl3oSj7wJhsOnSDPaUdLRj6e4G8APcLQI8udqULH8qWmEXxIny/S6yuzKHZO8Ymz4KB+eaTTw==" + ] + } + ] + }, + "gov": { + "starting_proposal_id": "1", + "deposits": [], + "votes": [], + "proposals": [], + "deposit_params": { + "min_deposit": [ + { + "denom": "uakt", + "amount": "10000000" + } + ], + "max_deposit_period": "172800s" + }, + "voting_params": { + "voting_period": "172800s" + }, + "tally_params": { + "quorum": "0.334000000000000000", + "threshold": "0.500000000000000000", + "veto_threshold": "0.334000000000000000" + } + }, + "ibc": { + "client_genesis": { + "clients": [], + "clients_consensus": [], + "clients_metadata": [], + "params": { + "allowed_clients": [ + "06-solomachine", + "07-tendermint" + ] + }, + "create_localhost": false, + "next_client_sequence": "0" + }, + "connection_genesis": { + "connections": [], + "client_connection_paths": [], + "next_connection_sequence": "0" + }, + "channel_genesis": { + "channels": [], + "acknowledgements": [], + "commitments": [], + "receipts": [], + "send_sequences": [], + "recv_sequences": [], + "ack_sequences": [], + "next_channel_sequence": "0" + } + }, + "market": { + "orders": [], + "leases": [], + "params": { + "bid_min_deposit": { + "denom": "uakt", + "amount": "50000000" + }, + "order_max_bids": 20 + } + }, + "mint": { + "minter": { + "inflation": "0.130000000000000000", + "annual_provisions": "0.000000000000000000" + }, + "params": { + "mint_denom": "uakt", + "inflation_rate_change": "0.130000000000000000", + "inflation_max": "0.200000000000000000", + "inflation_min": "0.070000000000000000", + "goal_bonded": "0.670000000000000000", + "blocks_per_year": "6311520" + } + }, + "params": null, + "provider": { + "providers": [] + }, + "slashing": { + "params": { + "signed_blocks_window": "100", + "min_signed_per_window": "0.500000000000000000", + "downtime_jail_duration": "600s", + "slash_fraction_double_sign": "0.050000000000000000", + "slash_fraction_downtime": "0.010000000000000000" + }, + "signing_infos": [], + "missed_blocks": [] + }, + "staking": { + "params": { + "unbonding_time": "1814400s", + "max_validators": 100, + "max_entries": 7, + "historical_entries": 10000, + "bond_denom": "uakt" + }, + "last_total_power": "0", + "last_validator_powers": [], + "validators": [], + "delegations": [], + "unbonding_delegations": [], + "redelegations": [], + "exported": false + }, + "transfer": { + "port_id": "transfer", + "denom_traces": [], + "params": { + "send_enabled": true, + "receive_enabled": true + } + }, + "upgrade": {}, + "vesting": {} + } +}