Skip to content

Commit 67c12b8

Browse files
committed
update
1 parent 0f5e24c commit 67c12b8

File tree

9 files changed

+109
-125
lines changed

9 files changed

+109
-125
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,21 @@ curl -s localhost:26657/net_info | jq -r '.result.peers[] | .node_info.moniker,
99
curl -s localhost:26657/net_info | jq -r .result.peers[].node_info.moniker
1010
watch -n 2 " curl -s localhost:26657/net_info | jq -r '.result.n_peers'"
1111
```
12+
13+
```
14+
junod tx staking create-validator \
15+
--amount 6000000ujunox \
16+
--commission-max-change-rate "0.1" \
17+
--commission-max-rate "0.20" \
18+
--commission-rate "0.1" \
19+
--min-self-delegation "1" \
20+
--details "This is my validator" \
21+
--pubkey=$(junod tendermint show-validator) \
22+
--moniker '[Polkachu] 1% fee' \
23+
--chain-id uni \
24+
--gas-prices 0.025ujunox \
25+
--from polkachu
26+
```
27+
28+
junod tx staking edit-validator --website="https://polkachu.com" --from=polkachu --gas-prices="0.025ujunox" --chain-id=uni
29+
junod tx staking delegate junovaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4pvzc6k3 1390000ujunox --chain-id=uni --from=polkachu --gas-prices="0.025ujunox"

group_vars/juno_testnet.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
validator_name: polkachu-juno-testnet
2+
network: juno
3+
daemon: junod
4+
chain_id: uni
5+
node_version: v1.0.0
6+
genesis: 'https://raw.githubusercontent.com/CosmosContracts/testnets/main/uni/genesis.json'
7+
repo: https://github.com/CosmosContracts/juno
8+
minimum_has_price: '0.025ujunox'
9+

group_vars/sifchain_betanet.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
validator_name: polkachu-sifchain-betanet
2-
chain_type: betanet
2+
network: sifnoded
3+
daemon: sifnoded
34
chain_id: sifchain-1
45
node_version: master
6+
genesis: 'https://raw.githubusercontent.com/Sifchain/networks/master/betanet/sifchain-1/genesis.json.gz'
7+
repo: https://github.com/Sifchain/sifnode.git
58

roles/juno/tasks/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o'
2828
environment:
2929
PATH: '{{ path }}'
30-
DAEMON_HOME: '/home/ubuntu/.{{ daemon }}'
3130

3231
- name: Update config files
3332
lineinfile:

roles/prepare/tasks/cosmos_software.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,22 @@
2525
dest: '/usr/local/'
2626
owner: root
2727
group: root
28-
mode: 755
28+
mode: '0755'
2929

3030
- name: Go get cosmovisor
3131
command: 'go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/cosmovisor@latest'
3232
environment:
3333
PATH: '{{ path }}'
3434
GOPATH: '/home/ubuntu/go'
3535

36+
- name: Change go folder permission
37+
file:
38+
path: /home/ubuntu/go
39+
owner: ubuntu
40+
group: ubuntu
41+
recurse: true
42+
mode: '0755'
43+
3644
- name: copy bash_profile
3745
template:
3846
src: 'profile.j2'

roles/sifchain/tasks/bash.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

roles/sifchain/tasks/main.yml

Lines changed: 69 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,72 @@
11
---
2-
- name: bash
3-
import_tasks: bash.yml
2+
# - name: Make sure the folder does not exist
3+
# become: true
4+
# file:
5+
# state: absent
6+
# path: '/home/ubuntu/{{ network }}'
47

5-
- name: sifchain
6-
import_tasks: sifchain.yml
8+
# - name: Clone node repo
9+
# git:
10+
# repo: '{{ repo }}'
11+
# dest: '/home/ubuntu/{{ network }}'
712

8-
- name: service
9-
import_tasks: service.yml
13+
# - name: Install node
14+
# command: '{{ item }}'
15+
# become: true
16+
# args:
17+
# chdir: '/home/ubuntu/{{ network }}'
18+
# with_items:
19+
# - 'git fetch'
20+
# - 'git checkout {{ node_version }}'
21+
# - 'make install'
22+
# environment:
23+
# PATH: '{{ path }}'
24+
# GOPATH: '/home/ubuntu/go'
25+
26+
- name: Initialize Node
27+
command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o'
28+
environment:
29+
PATH: '{{ path }}'
30+
31+
- name: Update the config.toml file
32+
lineinfile:
33+
path: '/home/ubuntu/.{{ network }}/config/config.toml'
34+
regexp: 'persistent_peers = ""'
35+
line: 'persistent_peers = "{{ peers }}"'
36+
state: present
37+
38+
- name: Download genesis file
39+
get_url:
40+
url: '{{ genesis }}'
41+
dest: '/tmp/genesis.json.gz'
42+
mode: '0700'
43+
44+
- name: unarchive genesis file
45+
shell: 'gunzip /tmp/genesis.json.gz -f'
46+
47+
- name: copy the genesis file
48+
copy:
49+
remote_src: true
50+
src: /tmp/genesis.json
51+
dest: /home/ubuntu/.sifnoded/config
52+
# - name: Update the config.toml file
53+
# lineinfile:
54+
# path: '/home/ubuntu/.sifnoded/config/config.toml'
55+
# regexp: 'persistent_peers = ""'
56+
# line: 'persistent_peers = "{{ peers }}"'
57+
# state: present
58+
59+
# - name: register public ip
60+
# uri:
61+
# url: https://api.ipify.org?format=json
62+
# register: public_ip
63+
# - name: debug
64+
# debug:
65+
# msg: '{{ public_ip.json.ip }}'
66+
67+
# - name: Set up external address
68+
# lineinfile:
69+
# path: '/home/ubuntu/.sifnoded/config/config.toml'
70+
# regexp: 'external_address = ""'
71+
# line: 'external_address = "{{ public_ip.json.ip }}:26656"'
72+
# state: present

roles/sifchain/tasks/service.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

roles/sifchain/tasks/sifchain.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)