Skip to content

Commit 58d038e

Browse files
v1 release
1 parent 78abdde commit 58d038e

26 files changed

+570
-32
lines changed

README.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1-
# ibc-relayer
1+
# IBC-Relayer Ansible Setup
22

3-
Hello world
3+
## Design Philosophy
4+
5+
1. Support both hermes and rly
6+
1. Make config file extensible by DRY principle
7+
8+
## Guide
9+
10+
First copy it to your own inventory file so you can customize it to suit your needs:
11+
12+
```bash
13+
cp inventory.sample inventory
14+
```
15+
16+
To install rly
17+
18+
```bash
19+
ansible-playbook main_rly_install.yml
20+
```
21+
22+
To install Hermes
23+
24+
```bash
25+
ansible-playbook main_hermes_install.yml
26+
```
27+
28+
To install a specific Hermes relayer hub
29+
30+
```bash
31+
ansible-playbook main_hermes_config.yml -e "target=juno"
32+
```

group_vars/gravity.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
rest_port: 3003
2+
telemetry_port: 4003

group_vars/juno.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
rest_port: 3001
2+
telemetry_port: 4001

group_vars/kujira.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
rest_port: 3005
2+
telemetry_port: 4005

group_vars/osmosis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
rest_port: 3002
2+
telemetry_port: 4002

inventory.sample renamed to inventory.sample.ini

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
ansible_user=ubuntu
66
ansible_port=22
77
ansible_ssh_private_key_file="~/.ssh/id_rsa"
8-
relayer1_ip="10.0.0.2"
9-
relayer2_ip="10.0.0.3"
10-
relayer3_ip="10.0.0.4"
11-
relayer4_ip="10.0.0.5"
8+
9+
# You will add more
10+
juno_ip="10.0.0.2"
11+
kichain_ip="10.0.0.3"
12+
sifchain_ip="10.0.0.4"
13+
stargaze_ip="10.0.0.5"
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{% include 'fragments/header.toml.j2' %}
2+
3+
4+
{% include 'fragments/gravity.toml.j2' %}
5+
6+
[chains.packet_filter]
7+
policy = 'allow'
8+
list = [
9+
['transfer', 'channel-0'], # Bitcanna
10+
['transfer', 'channel-34'], # Chihuahua
11+
['transfer', 'channel-8'], # Juno
12+
['transfer', 'channel-10'], # Osmosis
13+
['transfer', 'channel-7'], # Stargaze
14+
['transfer', 'channel-28'], # Umee
15+
]
16+
17+
{% include 'fragments/bitcanna.toml.j2' %}
18+
19+
[chains.packet_filter]
20+
policy = 'allow'
21+
list = [
22+
['transfer', 'channel-8'], # Gravity
23+
]
24+
25+
{% include 'fragments/chihuahua.toml.j2' %}
26+
27+
[chains.packet_filter]
28+
policy = 'allow'
29+
list = [
30+
['transfer', 'channel-15'], # Gravity
31+
]
32+
33+
{% include 'fragments/juno.toml.j2' %}
34+
35+
[chains.packet_filter]
36+
policy = 'allow'
37+
list = [
38+
['transfer', 'channel-31'], # Gravity
39+
]
40+
41+
{% include 'fragments/osmosis.toml.j2' %}
42+
43+
[chains.packet_filter]
44+
policy = 'allow'
45+
list = [
46+
['transfer', 'channel-144'], # Gravity
47+
]
48+
49+
{% include 'fragments/stargaze.toml.j2' %}
50+
51+
[chains.packet_filter]
52+
policy = 'allow'
53+
list = [
54+
['transfer', 'channel-6'], # Gravity
55+
]
56+
57+
{% include 'fragments/umee.toml.j2' %}
58+
59+
[chains.packet_filter]
60+
policy = 'allow'
61+
list = [
62+
['transfer', 'channel-9'], # Gravity
63+
]

roles/hermes_config/templates/configs/injective.toml.j2

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,10 @@
66
[chains.packet_filter]
77
policy = 'allow'
88
list = [
9-
['transfer', 'channel-8'], # Osmosis
109
['transfer', 'channel-76'], # Chihuahua
11-
['transfer', 'channel-83'], # Evmos
1210
['transfer', 'channel-1'], # Cosmos
13-
]
14-
15-
{% include 'fragments/osmosis.toml.j2' %}
16-
17-
[chains.packet_filter]
18-
policy = 'allow'
19-
list = [
20-
['transfer', 'channel-122'], # Injective
11+
['transfer', 'channel-83'], # Evmos
12+
['transfer', 'channel-8'], # Osmosis
2113
]
2214

2315
{% include 'fragments/chihuahua.toml.j2' %}
@@ -42,4 +34,12 @@ list = [
4234
policy = 'allow'
4335
list = [
4436
['transfer', 'channel-10'], # Injective
45-
]
37+
]
38+
39+
{% include 'fragments/osmosis.toml.j2' %}
40+
41+
[chains.packet_filter]
42+
policy = 'allow'
43+
list = [
44+
['transfer', 'channel-122'], # Injective
45+
]
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{% include 'fragments/header.toml.j2' %}
2+
3+
4+
{% include 'fragments/juno.toml.j2' %}
5+
6+
[chains.packet_filter]
7+
policy = 'allow'
8+
list = [
9+
['transfer', 'channel-29'], # Akash
10+
['transfer', 'channel-50'], # Bitcanna
11+
['transfer', 'channel-28'], # Chihuahua
12+
['transfer', 'channel-70'], # Evmos
13+
['transfer', 'channel-58'], # Kichain
14+
['transfer', 'channel-5'], # Sifchain
15+
['transfer', 'channel-20'], # Stargaze
16+
['transfer', 'channel-62'], # Umee
17+
]
18+
19+
{% include 'fragments/akash.toml.j2' %}
20+
21+
[chains.packet_filter]
22+
policy = 'allow'
23+
list = [
24+
['transfer', 'channel-35'], # Juno
25+
]
26+
27+
{% include 'fragments/bitcanna.toml.j2' %}
28+
29+
[chains.packet_filter]
30+
policy = 'allow'
31+
list = [
32+
['transfer', 'channel-10'], # Juno
33+
]
34+
35+
{% include 'fragments/chihuahua.toml.j2' %}
36+
37+
[chains.packet_filter]
38+
policy = 'allow'
39+
list = [
40+
['transfer', 'channel-11'], # Juno
41+
]
42+
43+
{% include 'fragments/evmos.toml.j2' %}
44+
45+
[chains.packet_filter]
46+
policy = 'allow'
47+
list = [
48+
['transfer', 'channel-5'], # Juno
49+
]
50+
51+
{% include 'fragments/kichain.toml.j2' %}
52+
53+
[chains.packet_filter]
54+
policy = 'allow'
55+
list = [
56+
['transfer', 'channel-8'], # Juno
57+
]
58+
59+
{% include 'fragments/sifchain.toml.j2' %}
60+
61+
[chains.packet_filter]
62+
policy = 'allow'
63+
list = [
64+
['transfer', 'channel-14'], # Juno
65+
]
66+
67+
{% include 'fragments/stargaze.toml.j2' %}
68+
69+
[chains.packet_filter]
70+
policy = 'allow'
71+
list = [
72+
['transfer', 'channel-5'], # Juno
73+
]
74+
75+
{% include 'fragments/umee.toml.j2' %}
76+
77+
[chains.packet_filter]
78+
policy = 'allow'
79+
list = [
80+
['transfer', 'channel-2'], # Juno
81+
]
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{% include 'fragments/header.toml.j2' %}
2+
3+
4+
{% include 'fragments/kujira.toml.j2' %}
5+
6+
[chains.packet_filter]
7+
policy = 'allow'
8+
list = [
9+
['transfer', 'channel-9'], # Axelar
10+
['transfer', 'channel-1'], # Juno
11+
['transfer', 'channel-0'], # Cosmos
12+
['transfer', 'channel-23'], # Evmos
13+
['transfer', 'channel-3'], # Osmosis
14+
]
15+
16+
{% include 'fragments/axelar.toml.j2' %}
17+
18+
[chains.packet_filter]
19+
policy = 'allow'
20+
list = [
21+
['transfer', 'channel-14'], # kujira
22+
]
23+
24+
{% include 'fragments/cosmos.toml.j2' %}
25+
26+
[chains.packet_filter]
27+
policy = 'allow'
28+
list = [
29+
['transfer', 'channel-343'], # Kujira
30+
]
31+
32+
{% include 'fragments/evmos.toml.j2' %}
33+
34+
[chains.packet_filter]
35+
policy = 'allow'
36+
list = [
37+
['transfer', 'channel-18'], # Kujira
38+
]
39+
40+
{% include 'fragments/juno.toml.j2' %}
41+
42+
[chains.packet_filter]
43+
policy = 'allow'
44+
list = [
45+
['transfer', 'channel-87'], # kujira
46+
]
47+
48+
{% include 'fragments/osmosis.toml.j2' %}
49+
50+
[chains.packet_filter]
51+
policy = 'allow'
52+
list = [
53+
['transfer', 'channel-259'], # kujira
54+
]

0 commit comments

Comments
 (0)