Skip to content

Commit d6c6d82

Browse files
committed
Add support for kichain
1 parent c867559 commit d6c6d82

File tree

5 files changed

+96
-2
lines changed

5 files changed

+96
-2
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ This repo is to set up the Cosmos-based node. It currently support:
66
- Sifchain (betanet and testnet)
77
- Kava (mainnet)
88
- BitCanna (mainnet)
9+
- KiChain (mainnet)
910
- Evmos (testnet)
1011

1112
## Summary
@@ -17,6 +18,7 @@ ansible-playbook -i inventory juno.yml -e "target=juno_mainnet"
1718
ansible-playbook -i inventory sifchain.yml -e "target=sifchain_betanet"
1819
ansible-playbook -i inventory kava.yml -e "target=kava_mainnet"
1920
ansible-playbook -i inventory bitcanna.yml -e "target=bitcanna_mainnet"
21+
ansible-playbook -i inventory kichain.yml -e "target=kichain_mainnet"
2022
```
2123

2224
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.
@@ -60,6 +62,7 @@ ansible-playbook -i inventory juno.yml -e "target=juno_mainnet"
6062
ansible-playbook -i inventory sifchain.yml -e "target=sifchain_betanet"
6163
ansible-playbook -i inventory kava.yml -e "target=kava_mainnet"
6264
ansible-playbook -i inventory bitcanna.yml -e "target=bitcanna_mainnet"
65+
ansible-playbook -i inventory kichain.yml -e "target=kichain_mainnet"
6366
```
6467

6568
If you prefer to install the node manually, you can run a 'prepare' playbook to set up a server for a cosmo-based chain without installing the node itself.
@@ -73,13 +76,17 @@ Playbooks are:
7376
| `sifchain.yml` | Set up Sifchain node. It includes the general `prepare` task and `sifchain` specific task |
7477
| `kava.yml` | Set up Kava node. It includes the general `prepare` task and `kava` specific task |
7578
| `bitcanna.yml` | Set up Bitcanna node. It includes the general `prepare` task and `bitcanna` specific task |
79+
| `kichain.yml` | Set up KiChain node. It includes the general `prepare` task and `kichain` specific task |
7680

7781
## Additional Info
7882

7983
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:
8084

81-
- Various chains: https://www.chainlayer.io/quicksync/
82-
- Sifchain: see https://github.com/Sifchain/sifchain-validators/blob/master/docs/setup/standalone/manual.md
85+
Kava: Snapshot is [here](https://www.chainlayer.io/quicksync/)
86+
87+
Sifchain: Follow instruction [here](https://github.com/Sifchain/sifchain-validators/blob/master/docs/setup/standalone/manual.md)
88+
89+
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.
8390

8491
## Some Useful Commands
8592

@@ -93,6 +100,8 @@ When you install a node that has upgrades in the past, you can either sync from
93100

94101
[Sifchain](docs/sifchain.md)
95102

103+
[KiChain](docs/kichain.md)
104+
96105
## Please stake with our validators
97106

98107
| Network | Validator |
@@ -101,3 +110,4 @@ When you install a node that has upgrades in the past, you can either sync from
101110
| Juno | `junovaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4pvzc6k3` |
102111
| Kava | `kavavaloper125s8t5c6ypwee7ytun90lnhgpls2zl3vta43aj` |
103112
| Sifchain | `sifvaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4pfj2j90` |
113+
| KiChain | `kivaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4pq8jud7` |

docs/kichain.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## Kichain
2+
3+
create validator
4+
5+
```bash
6+
kid tx staking create-validator \
7+
--amount=5000000uxki \
8+
--commission-max-change-rate=0.01 \
9+
--commission-max-rate=0.1 \
10+
--commission-rate=0 \
11+
--min-self-delegation=1 \
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+
--pubkey `kid tendermint show-validator` \
16+
--moniker="polkachu.com | 0% fee" \
17+
--chain-id=kichain-2 \
18+
--gas-prices=0.025uxki \
19+
--from=polkachu
20+
```
21+
22+
```bash
23+
kid tx staking delegate kivaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4pq8jud7 70000000uxki \
24+
--chain-id=kichain-2 \
25+
--gas-prices=0.025uxki \
26+
--from=polkachu
27+
```

group_vars/kichain_mainnet.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
network: kichain
2+
folder: '.kid'
3+
daemon: kid
4+
chain_id: kichain-2
5+
node_version: '2.0.1'
6+
repo: https://github.com/KiFoundation/ki-tools.git
7+
genesis: 'https://github.com/KiFoundation/ki-networks/raw/v0.1/Mainnet/kichain-2/genesis.json'
8+
9+
seeds: '[email protected]:26656'
10+
minimum_gas_price: '0.025uxki'

kichain.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_kichain
15+
- launch_node
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: Download genesis file
8+
get_url:
9+
url: '{{ genesis }}'
10+
dest: '/home/{{ ansible_user }}/{{ folder }}/config/genesis.json'
11+
mode: '0644'
12+
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
19+
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
26+
27+
- name: Update the config.toml file
28+
lineinfile:
29+
path: '/home/{{ ansible_user }}/{{ folder }}/config/config.toml'
30+
regexp: 'persistent_peers = ""'
31+
line: 'persistent_peers = "{{ peers }}"'
32+
state: present

0 commit comments

Comments
 (0)