Skip to content

Commit 728797a

Browse files
committed
Add akash
1 parent e64123d commit 728797a

File tree

5 files changed

+55
-32
lines changed

5 files changed

+55
-32
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
This repo is to set up the Cosmos-based node. It currently support:
44

5+
- Akash
56
- BitCanna
67
- Chihuahua
78
- Comdex
@@ -57,6 +58,7 @@ The structure allows you to target `vars` to each node, or a group cluster, or t
5758
The key Ansible playbook is `<chain>.yml` files. It will set up a fresh node from scratch. For example:
5859

5960
```bash
61+
ansible-playbook -i inventory akash.yml -e "target=akash"
6062
ansible-playbook -i inventory bitcanna.yml -e "target=bitcanna_mainnet_main"
6163
ansible-playbook -i inventory chihuahua.yml -e "target=chihuahua_mainnet_main"
6264
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
110112

111113
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:
112114

115+
Akash: Snapshot here [here](https://docs.akash.network/operations/node#step9-blockchain-snapshot-use)
116+
113117
Kava: Snapshot is [here](https://www.chainlayer.io/quicksync/)
114118

115119
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
122126

123127
| Network | Validator | Useful Commands |
124128
| ------------ | --------------------------------------------------------- | ------------------------------ |
129+
| Akash 🌿 | `akashvaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4pz5w0ry` | [Akash](docs/akash.md) |
125130
| Bitcanna 🌿 | `bcnavaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4pxqv0cj` | [BitCanna](docs/bitcanna.md) |
126131
| Chihuahua 🐶 | `chihuahuavaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4p40qac2` | [Chihuahua](docs/chihuahua.md) |
127132
| Comdex 🛢️ | `comdexvaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4p3447dz` | [Comdex](docs/comdex.md) |

akash.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
2-
# - name: Prepare
3-
# hosts: '{{ target }}'
4-
# become: true
5-
# gather_facts: false
6-
# roles:
7-
# - prepare
2+
- name: Prepare
3+
hosts: '{{ target }}'
4+
become: true
5+
gather_facts: false
6+
roles:
7+
- prepare
88

99
- name: Install node
1010
hosts: '{{ target }}'
1111
gather_facts: false
1212
roles:
13+
- standard_node_installation
1314
- initialize_akash
14-
# - standard_node_installation
15-
# - launch_node
15+
- launch_node

docs/akash.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Akash
2+
3+
create validator
4+
5+
```bash
6+
7+
akash tx staking create-validator \
8+
--amount=1000000uakt \
9+
--website "https://polkachu.com" \
10+
--identity "0A6AF02D1557E5B4" \
11+
--details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at [email protected]" \
12+
--pubkey="$(akash tendermint show-validator)" \
13+
--moniker 'polkachu.com | 0% fee' \
14+
--chain-id="akashnet-2" \
15+
--commission-rate="0" \
16+
--commission-max-rate="0.10" \
17+
--commission-max-change-rate="0.05" \
18+
--min-self-delegation="1" \
19+
--gas="auto" \
20+
--gas-adjustment 1.15 \
21+
--gas-prices="0.025uakt" \
22+
--from=polkachu
23+
```

group_vars/akash_mainnet.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ chain_id: 'akashnet-2'
55
node_version: 'v0.14.1'
66
repo: 'https://github.com/ovrclk/akash'
77
genesis: 'https://raw.githubusercontent.com/ovrclk/net/master/mainnet/genesis.json'
8-
peers: ''
9-
minimum_gas_price: ''
8+
9+
minimum_gas_price: '0.025uakt'
Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,25 @@
11
---
2-
# - name: Initialize Node
3-
# command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o'
4-
# environment:
5-
# PATH: '{{ path }}'
2+
- name: Initialize Node
3+
command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o'
4+
environment:
5+
PATH: '{{ path }}'
6+
67
- name: Download genesis file
78
get_url:
89
url: '{{ genesis }}'
910
dest: '/home/{{ ansible_user }}/{{ folder }}/config/genesis.json'
1011
mode: '0644'
11-
# - name: Update minimum gas price on config file
12-
# lineinfile:
13-
# path: '/home/{{ ansible_user }}/{{ folder }}/config/app.toml'
14-
# regexp: 'minimum-gas-prices '
15-
# line: 'minimum-gas-prices = "{{ minimum_gas_price }}"'
16-
# state: present
1712

18-
# - name: Update seeds on the config.toml file
19-
# lineinfile:
20-
# path: '/home/{{ ansible_user }}/{{ folder }}/config/config.toml'
21-
# regexp: 'seeds = ""'
22-
# line: 'seeds = "{{ seeds }}"'
23-
# state: present
13+
- name: Update minimum gas price on config file
14+
lineinfile:
15+
path: '/home/{{ ansible_user }}/{{ folder }}/config/app.toml'
16+
regexp: 'minimum-gas-prices '
17+
line: 'minimum-gas-prices = "{{ minimum_gas_price }}"'
18+
state: present
2419

25-
# - name: Update the config.toml file
26-
# lineinfile:
27-
# path: '/home/{{ ansible_user }}/{{ folder }}/config/config.toml'
28-
# regexp: 'persistent_peers = ""'
29-
# line: 'persistent_peers = "{{ peers }}"'
30-
# state: present
20+
- name: Update seeds on the config.toml file
21+
lineinfile:
22+
path: '/home/{{ ansible_user }}/{{ folder }}/config/config.toml'
23+
regexp: 'seeds = ""'
24+
line: 'seeds = "{{ seeds }}"'
25+
state: present

0 commit comments

Comments
 (0)