Skip to content

Commit bd88e22

Browse files
committed
add comdex support
1 parent f7b653a commit bd88e22

File tree

9 files changed

+100
-22
lines changed

9 files changed

+100
-22
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
This repo is to set up the Cosmos-based node. It currently support:
44

55
- BitCanna (mainnet)
6+
- Comdex (mainnet)
67
- Juno (mainnet and testnet)
78
- Kava (mainnet)
89
- KiChain (mainnet)
@@ -16,12 +17,6 @@ You run one playbook and set up a node. For example:
1617

1718
```bash
1819
ansible-playbook -i inventory bitcanna.yml -e "target=bitcanna_mainnet"
19-
ansible-playbook -i inventory juno.yml -e "target=juno_mainnet"
20-
ansible-playbook -i inventory kava.yml -e "target=kava_mainnet"
21-
ansible-playbook -i inventory kichain.yml -e "target=kichain_mainnet"
22-
ansible-playbook -i inventory osmosis.yml -e "target=osmosis_mainnet"
23-
ansible-playbook -i inventory sifchain.yml -e "target=sifchain_betanet"
24-
ansible-playbook -i inventory terra.yml -e "target=terra_mainnet"
2520
```
2621

2722
But before you rush with this easy setup, you probably want to read on so you understand the structure of this Ansible program and all the features it offers.
@@ -62,6 +57,7 @@ The key Ansible playbook is `<chain>.yml` files. It will set up a fresh node fro
6257

6358
```bash
6459
ansible-playbook -i inventory bitcanna.yml -e "target=bitcanna_mainnet"
60+
ansible-playbook -i inventory bitcanna.yml -e "target=comdex_mainnet"
6561
ansible-playbook -i inventory juno.yml -e "target=juno_mainnet"
6662
ansible-playbook -i inventory kava.yml -e "target=kava_mainnet"
6763
ansible-playbook -i inventory kichain.yml -e "target=kichain_mainnet"
@@ -78,6 +74,7 @@ Playbooks are:
7874
| -------------- | ----------------------------------------------------------------------------------------- |
7975
| `prepare.yml ` | Prepare the server with node_exporter, promtail, go, cosmovisor, and firewall rules |
8076
| `bitcanna.yml` | Set up Bitcanna node. It includes the general `prepare` task and `bitcanna` specific task |
77+
| `comdex.yml` | Set up Comdex node. It includes the general `prepare` task and `comdex` specific task |
8178
| `juno.yml` | Set up Juno node. It includes the general `prepare` task and `juno` specific task |
8279
| `kava.yml` | Set up Kava node. It includes the general `prepare` task and `kava` specific task |
8380
| `kichain.yml` | Set up KiChain node. It includes the general `prepare` task and `kichain` specific task |
@@ -103,6 +100,8 @@ Sifchain: Follow instruction [here](https://github.com/Sifchain/sifchain-validat
103100

104101
[BitCanna](docs/bitcanna.md)
105102

103+
[Comdex](docs/comdex.md)
104+
106105
[Juno](docs/juno.md)
107106

108107
[Kava](docs/kava.md)

comdex.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
# - name: Prepare
3+
# hosts: '{{ target }}'
4+
# become: true
5+
# gather_facts: false
6+
# roles:
7+
# - prepare
8+
9+
- name: Install node
10+
hosts: '{{ target }}'
11+
gather_facts: false
12+
roles:
13+
# - standard_node_installation
14+
# - initialize_comdex
15+
- launch_node

docs/comdex.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
## Comdex

docs/kichain.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ kid tx staking delegate kivaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4pq8jud7 7000000
3030

3131
```bash
3232
kid tx staking edit-validator \
33-
--commission-rate="0.01" \
34-
--moniker="polkachu.com | 1% fee" \
33+
--commission-rate="0.02" \
34+
--moniker="polkachu.com | 2% fee" \
3535
--chain-id=kichain-2 \
3636
--gas-prices=0.025uxki \
3737
--from=polkachu

docs/terra.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,38 @@
11
## Terra
22

3+
### Testnet
4+
35
Create validator
6+
7+
```bash
8+
terrad tx staking create-validator \
9+
--amount=5000000uluna \
10+
--pubkey=$(terrad tendermint show-validator) \
11+
--moniker 'polkachu.com' \
12+
--website "https://polkachu.com" \
13+
--identity "0A6AF02D1557E5B4" \
14+
--details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at [email protected]" \
15+
--chain-id=bombay-12 \
16+
--from=polkachu \
17+
--commission-max-change-rate "0.01" \
18+
--commission-rate "0.02" \
19+
--commission-max-rate "0.1" \
20+
--min-self-delegation "1" \
21+
--fees=3000uluna \
22+
--from=polkachu
23+
```
24+
25+
Set oracle
26+
27+
```bash
28+
terrad tx oracle set-feeder terra13v9q6pek6cwu4js989d22wl8sdm48j4r9cnrg7 --from=polkachu --chain-id=bombay-12 --fees=3000uluna
29+
```
30+
31+
```bash
32+
npm start vote -- \
33+
--source http://localhost:8532/latest \
34+
--lcd https://lcd.terra.dev \
35+
--chain-id columbus-5 \
36+
--validator terravaloper168epm0dvd6v9kpxjz2x800sad0mq4sm9herwzz \
37+
--password "<password>"
38+
```

group_vars/comdex_mainnet.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
network: comdex
2+
folder: '.comdex'
3+
daemon: comdex
4+
chain_id: comdex-1
5+
node_version: v0.0.4
6+
repo: https://github.com/comdex-official/comdex.git
7+
genesis: 'https://raw.githubusercontent.com/comdex-official/networks/main/mainnet/comdex-1/genesis.json'
8+
9+
10+
minimum_gas_price: '0.025ucmdx'
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
# - name: Initialize Node
3+
# command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o'
4+
# environment:
5+
# PATH: '{{ path }}'
6+
7+
# - name: Update minimum gas price on config file
8+
# lineinfile:
9+
# path: '/home/{{ ansible_user }}/{{ folder }}/config/app.toml'
10+
# regexp: 'minimum-gas-prices '
11+
# line: 'minimum-gas-prices = "{{ minimum_gas_price }}"'
12+
# state: present
13+
14+
# - name: Update the config.toml file
15+
# lineinfile:
16+
# path: '/home/{{ ansible_user }}/{{ folder }}/config/config.toml'
17+
# regexp: 'persistent_peers = ""'
18+
# line: 'persistent_peers = "{{ peers }}"'
19+
# state: present
20+
21+
# - name: Download genesis file
22+
# get_url:
23+
# url: '{{ genesis }}'
24+
# dest: '/home/{{ ansible_user }}/{{ folder }}/config/genesis.json'
25+
# mode: '0644'
26+
27+
- name: Update seeds on the config.toml file
28+
lineinfile:
29+
path: '/home/{{ ansible_user }}/{{ folder }}/config/config.toml'
30+
regexp: 'seeds = ""'
31+
line: 'seeds = "{{ seeds }}"'
32+
state: present

roles/initialize_osmosis/tasks/main.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@
1717
line: 'persistent_peers = "{{ peers }}"'
1818
state: present
1919

20-
- name: Update pruning to everything to save storage
21-
lineinfile:
22-
path: '/home/{{ ansible_user }}/{{ folder }}/config/app.toml'
23-
regexp: 'pruning = "default"'
24-
line: 'pruning = "everything"'
25-
state: present
26-
2720
# launch node
2821
- name: register public ip
2922
uri:

roles/initialize_terra/tasks/main.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,6 @@
3939
line: 'minimum-gas-prices = "{{ minimum_gas_price }}"'
4040
state: present
4141

42-
- name: Update pruning to everything to save storage
43-
lineinfile:
44-
path: '/home/{{ ansible_user }}/{{ folder }}/config/app.toml'
45-
regexp: 'pruning = "default"'
46-
line: 'pruning = "everything"'
47-
state: present
48-
4942
# Launch Node
5043
- name: register public ip
5144
uri:

0 commit comments

Comments
 (0)