Skip to content

Commit 3370dc1

Browse files
committed
add osmosis relayer playbook
1 parent a67a246 commit 3370dc1

File tree

5 files changed

+138
-7
lines changed

5 files changed

+138
-7
lines changed

docs/relayers.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ We run all relayers on one machine with high CPU, memory and storage. The defaul
1717
- gRPC server: 9090 (default)
1818
- gRPC-web server: 9091 (default)
1919

20+
Make sure the firewalls are open for prometheus port and p2p port. Make sure prometheus is true.
21+
22+
### Juno Relayer
23+
2024
| Network | Prometheus | P2P | RPC | ABCI | Pprof | API server | Rosetta API | gRPC server | gRPC-web server |
2125
| -------------- | ---------- | ----- | ----- | ----- | ----- | ---------- | ----------- | ----------- | --------------- |
2226
| Juno (default) | 26660 | 26656 | 26657 | 26658 | 6060 | 1317 | 8080 | 9090 | 9091 |
@@ -27,6 +31,10 @@ We run all relayers on one machine with high CPU, memory and storage. The defaul
2731
| Comdex | 31660 | 31656 | 31657 | 31658 | 31060 | 31317 | 31080 | 31090 | 31091 |
2832
| Sifchain | 32660 | 32656 | 32657 | 32658 | 32060 | 32327 | 32080 | 32090 | 32091 |
2933

30-
Make sure the firewalls are open for prometheus port and p2p port
34+
### Osmosis Relayer
3135

32-
Make sure prometheus is true.
36+
| Network | Prometheus | P2P | RPC | ABCI | Pprof | API server | Rosetta API | gRPC server | gRPC-web server |
37+
| ----------------- | ---------- | ----- | ----- | ----- | ----- | ---------- | ----------- | ----------- | --------------- |
38+
| Osmosis (default) | 26660 | 26656 | 26657 | 26658 | 6060 | 1317 | 8080 | 9090 | 9091 |
39+
| Chihuahua | 29660 | 29656 | 29657 | 29658 | 29060 | 29317 | 29080 | 29090 | 29091 |
40+
| Konstellation | 33660 | 33656 | 33657 | 33658 | 33060 | 33317 | 33080 | 33090 | 33091 |

group_vars/osmosis_mainnet.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,3 @@ node_version: v6.0.1
66
repo: https://github.com/osmosis-labs/osmosis
77
genesis: 'https://github.com/osmosis-labs/networks/raw/main/osmosis-1/genesis.json'
88
9-
10-
# For auto compound script
11-
denomination: 'uosmo'
12-
threshold: 1000000
13-
transaction_extra_flag: '--gas=auto --gas-adjustment=1.2 --gas-prices=0.025uosmo'

relayer_osmosis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
- name: Move Osmosis relayer config
3+
hosts: '{{ target }}'
4+
gather_facts: false
5+
roles:
6+
- relayer_osmosis
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# The global section has parameters that apply globally to the relayer operation.
2+
[global]
3+
log_level = 'info'
4+
5+
# Specify the mode to be used by the relayer. [Required]
6+
[mode]
7+
8+
# Specify the client mode.
9+
[mode.clients]
10+
enabled = false
11+
refresh = true
12+
misbehaviour = false
13+
14+
# Specify the connections mode.
15+
[mode.connections]
16+
enabled = false
17+
18+
# Specify the channels mode.
19+
[mode.channels]
20+
enabled = false
21+
22+
# Specify the packets mode.
23+
[mode.packets]
24+
enabled = true
25+
clear_interval = 200
26+
clear_on_start = true
27+
tx_confirmation = true
28+
29+
# The REST section defines parameters for Hermes' built-in RESTful API.
30+
# https://hermes.informal.systems/rest.html
31+
[rest]
32+
enabled = true
33+
host = '127.0.0.1'
34+
port = 3000
35+
36+
[telemetry]
37+
enabled = true
38+
host = '127.0.0.1'
39+
port = 3001
40+
41+
#
42+
# Chain configuration Osmosis
43+
#
44+
45+
[[chains]]
46+
id = 'osmosis-1'
47+
rpc_addr = 'http://127.0.0.1:26657'
48+
grpc_addr = 'http://127.0.0.1:9090'
49+
websocket_addr = 'ws://127.0.0.1:26657/websocket'
50+
51+
rpc_timeout = '20s'
52+
account_prefix = 'osmo'
53+
key_name = 'osmosis-relayer'
54+
address_type = { derivation = 'cosmos' }
55+
store_prefix = 'ibc'
56+
default_gas = 100000
57+
max_gas = 1000000
58+
gas_price = { price = 0.000, denom = 'uosmo' }
59+
gas_adjustment = 0.2
60+
max_msg_num = 30
61+
max_tx_size = 1800000
62+
clock_drift = '15s'
63+
max_block_time = '10s'
64+
trusting_period = '14days'
65+
memo_prefix = 'Relayed by Polkachu'
66+
trust_threshold = { numerator = '1', denominator = '3' }
67+
68+
[chains.packet_filter]
69+
policy = 'allow'
70+
list = [
71+
['transfer', 'channel-113'], # Chihuahua
72+
]
73+
74+
#
75+
# Chain configuration Chihuahua
76+
#
77+
78+
[[chains]]
79+
id = 'chihuahua-1'
80+
# API access to Chihuahua node with indexing
81+
rpc_addr = 'http://127.0.0.1:29657'
82+
grpc_addr = 'http://127.0.0.1:29090'
83+
websocket_addr = 'ws://127.0.0.1:29657/websocket'
84+
85+
rpc_timeout = '20s'
86+
account_prefix = 'chihuahua'
87+
key_name = 'chihuahua-relayer'
88+
address_type = { derivation = 'cosmos' }
89+
store_prefix = 'ibc'
90+
default_gas = 100000
91+
max_gas = 3500000
92+
gas_price = { price = 0.05, denom = 'uhuahua' }
93+
gas_adjustment = 0.2
94+
max_msg_num = 30
95+
max_tx_size = 1800000
96+
clock_drift = '10s'
97+
max_block_time = '10s'
98+
trusting_period = '14days'
99+
memo_prefix = 'Relayed by Polkachu'
100+
trust_threshold = { numerator = '1', denominator = '3' }
101+
102+
[chains.packet_filter]
103+
policy = 'allow'
104+
list = [
105+
['transfer', 'channel-7'], # Osmosis
106+
]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
- name: Copy hermes config script
3+
copy:
4+
src: 'hermes.toml'
5+
dest: '/home/{{ ansible_user }}/.hermes/config.toml'
6+
owner: '{{ ansible_user }}'
7+
group: '{{ ansible_user }}'
8+
mode: '0644'
9+
# - name: Restart Hermes
10+
# become: true
11+
# systemd:
12+
# name: hermes
13+
# state: restarted
14+
# daemon_reload: yes
15+
# enabled: yes
16+
# changed_when: false

0 commit comments

Comments
 (0)