-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
96 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## Kichain | ||
|
||
create validator | ||
|
||
```bash | ||
kid tx staking create-validator \ | ||
--amount=5000000uxki \ | ||
--commission-max-change-rate=0.01 \ | ||
--commission-max-rate=0.1 \ | ||
--commission-rate=0 \ | ||
--min-self-delegation=1 \ | ||
--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 [email protected]" \ | ||
--pubkey `kid tendermint show-validator` \ | ||
--moniker="polkachu.com | 0% fee" \ | ||
--chain-id=kichain-2 \ | ||
--gas-prices=0.025uxki \ | ||
--from=polkachu | ||
``` | ||
|
||
```bash | ||
kid tx staking delegate kivaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4pq8jud7 70000000uxki \ | ||
--chain-id=kichain-2 \ | ||
--gas-prices=0.025uxki \ | ||
--from=polkachu | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
network: kichain | ||
folder: '.kid' | ||
daemon: kid | ||
chain_id: kichain-2 | ||
node_version: '2.0.1' | ||
repo: https://github.com/KiFoundation/ki-tools.git | ||
genesis: 'https://github.com/KiFoundation/ki-networks/raw/v0.1/Mainnet/kichain-2/genesis.json' | ||
peers: '[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656' | ||
seeds: '[email protected]:26656' | ||
minimum_gas_price: '0.025uxki' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
# - name: Prepare | ||
# hosts: '{{ target }}' | ||
# become: true | ||
# gather_facts: false | ||
# roles: | ||
# - prepare | ||
|
||
- name: Install node | ||
hosts: '{{ target }}' | ||
gather_facts: false | ||
roles: | ||
- standard_node_installation | ||
- initialize_kichain | ||
- launch_node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
- 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 the config.toml file | ||
lineinfile: | ||
path: '/home/{{ ansible_user }}/{{ folder }}/config/config.toml' | ||
regexp: 'persistent_peers = ""' | ||
line: 'persistent_peers = "{{ peers }}"' | ||
state: present |