diff --git a/README.md b/README.md index 838870eb..8190e0a4 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ This repo is to set up the Cosmos-based node. It currently support: +- Akash - BitCanna - Chihuahua - Comdex @@ -57,6 +58,7 @@ The structure allows you to target `vars` to each node, or a group cluster, or t The key Ansible playbook is `.yml` files. It will set up a fresh node from scratch. For example: ```bash +ansible-playbook -i inventory akash.yml -e "target=akash" ansible-playbook -i inventory bitcanna.yml -e "target=bitcanna_mainnet_main" ansible-playbook -i inventory chihuahua.yml -e "target=chihuahua_mainnet_main" ansible-playbook -i inventory comdex.yml -e "target=comdex_mainnet_main" @@ -110,6 +112,8 @@ Alternatively, you can add a cronjob. For example, this following cronjob will r When you install a node that has upgrades in the past, you can either sync from Block 1, or use a snapshot to time-travel to the present quickly. We strongly recommend using snapshots. It will save you time of syncing and debugging. Here are a list of trusted snapshot providers. Do your own research and make sure that you can trust the snapshot providers: +Akash: Snapshot here [here](https://docs.akash.network/operations/node#step9-blockchain-snapshot-use) + Kava: Snapshot is [here](https://www.chainlayer.io/quicksync/) KiChain: Follow instruction [here](https://mzonder.notion.site/KiChain-2-Mainnet-Clean-Install-b20ce6400131499f854abc7567ce3b3f). In fact, we cannot make it work with the peers listed when we tried to sync from Block 1. The only way we made it work is by syncing with the snapshot from the included link. @@ -122,6 +126,7 @@ Sifchain: Follow instruction [here](https://github.com/Sifchain/sifchain-validat | Network | Validator | Useful Commands | | ------------ | --------------------------------------------------------- | ------------------------------ | +| Akash 🌿 | `akashvaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4pz5w0ry` | [Akash](docs/akash.md) | | Bitcanna 🌿 | `bcnavaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4pxqv0cj` | [BitCanna](docs/bitcanna.md) | | Chihuahua 🐶 | `chihuahuavaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4p40qac2` | [Chihuahua](docs/chihuahua.md) | | Comdex 🛢️ | `comdexvaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4p3447dz` | [Comdex](docs/comdex.md) | diff --git a/akash.yml b/akash.yml index e50027b7..e563c024 100644 --- a/akash.yml +++ b/akash.yml @@ -1,15 +1,15 @@ --- -# - name: Prepare -# hosts: '{{ target }}' -# become: true -# gather_facts: false -# roles: -# - prepare +- name: Prepare + hosts: '{{ target }}' + become: true + gather_facts: false + roles: + - prepare - name: Install node hosts: '{{ target }}' gather_facts: false roles: + - standard_node_installation - initialize_akash - # - standard_node_installation - # - launch_node + - launch_node diff --git a/docs/akash.md b/docs/akash.md new file mode 100644 index 00000000..25733550 --- /dev/null +++ b/docs/akash.md @@ -0,0 +1,23 @@ +## Akash + +create validator + +```bash + +akash tx staking create-validator \ + --amount=1000000uakt \ + --website "https://polkachu.com" \ + --identity "0A6AF02D1557E5B4" \ + --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ + --pubkey="$(akash tendermint show-validator)" \ + --moniker 'polkachu.com | 0% fee' \ + --chain-id="akashnet-2" \ + --commission-rate="0" \ + --commission-max-rate="0.10" \ + --commission-max-change-rate="0.05" \ + --min-self-delegation="1" \ + --gas="auto" \ + --gas-adjustment 1.15 \ + --gas-prices="0.025uakt" \ + --from=polkachu +``` diff --git a/group_vars/akash_mainnet.yml b/group_vars/akash_mainnet.yml index 164fd9c9..2476e047 100644 --- a/group_vars/akash_mainnet.yml +++ b/group_vars/akash_mainnet.yml @@ -5,5 +5,5 @@ chain_id: 'akashnet-2' node_version: 'v0.14.1' repo: 'https://github.com/ovrclk/akash' genesis: 'https://raw.githubusercontent.com/ovrclk/net/master/mainnet/genesis.json' -peers: '' -minimum_gas_price: '' +seeds: '27eb432ccd5e895c5c659659120d68b393dd8c60@35.247.65.183:26656,8e2f56098f182ffe2f6fb09280bafe13c63eb42f@46.101.176.149:26656,fff99a2e8f3c9473e4e5ee9a99611a2e599529fd@46.166.138.218:26656' +minimum_gas_price: '0.025uakt' diff --git a/roles/initialize_akash/tasks/main.yml b/roles/initialize_akash/tasks/main.yml index 6e15007d..3c79f2a4 100644 --- a/roles/initialize_akash/tasks/main.yml +++ b/roles/initialize_akash/tasks/main.yml @@ -1,30 +1,25 @@ --- -# - name: Initialize Node -# command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' -# environment: -# PATH: '{{ path }}' +- name: Initialize Node + command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' + environment: + PATH: '{{ path }}' + - name: Download genesis file get_url: url: '{{ genesis }}' dest: '/home/{{ ansible_user }}/{{ folder }}/config/genesis.json' mode: '0644' -# - name: Update minimum gas price on config file -# lineinfile: -# path: '/home/{{ ansible_user }}/{{ folder }}/config/app.toml' -# regexp: 'minimum-gas-prices ' -# line: 'minimum-gas-prices = "{{ minimum_gas_price }}"' -# state: present -# - name: Update seeds on the config.toml file -# lineinfile: -# path: '/home/{{ ansible_user }}/{{ folder }}/config/config.toml' -# regexp: 'seeds = ""' -# line: 'seeds = "{{ seeds }}"' -# state: present +- name: Update minimum gas price on config file + lineinfile: + path: '/home/{{ ansible_user }}/{{ folder }}/config/app.toml' + regexp: 'minimum-gas-prices ' + line: 'minimum-gas-prices = "{{ minimum_gas_price }}"' + state: present -# - name: Update the config.toml file -# lineinfile: -# path: '/home/{{ ansible_user }}/{{ folder }}/config/config.toml' -# regexp: 'persistent_peers = ""' -# line: 'persistent_peers = "{{ peers }}"' -# state: present +- name: Update seeds on the config.toml file + lineinfile: + path: '/home/{{ ansible_user }}/{{ folder }}/config/config.toml' + regexp: 'seeds = ""' + line: 'seeds = "{{ seeds }}"' + state: present