Skip to content

Commit

Permalink
Add cheqd, secret and terra2 fragments and move memo variable to inve…
Browse files Browse the repository at this point in the history
…ntory
  • Loading branch information
PolkachuIntern committed Sep 23, 2022
1 parent 6d18871 commit 5ab5dbc
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 4 deletions.
3 changes: 0 additions & 3 deletions group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,3 @@ hermes_version: '1.0.0'

# rly
rly_version: '2.0.0'

# Relay Memo
memo: 'Relayed by Polkachu'
2 changes: 2 additions & 0 deletions group_vars/testnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rest_port: 3002
telemetry_port: 4002
5 changes: 4 additions & 1 deletion inventory.sample.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ ansible_user=ubuntu
ansible_port=22
ansible_ssh_private_key_file="~/.ssh/id_rsa"

# Relay Memo
memo: 'Relayed by Polkachu'

# You will add more
juno_ip="10.0.0.2"
kichain_ip="10.0.0.3"
sifchain_ip="10.0.0.4"
stargaze_ip="10.0.0.5"
stargaze_ip="10.0.0.5"
7 changes: 7 additions & 0 deletions roles/hermes_config/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
---
- name: make hermes dir
file:
path: '/home/{{ ansible_user }}/.hermes/'
owner: '{{ ansible_user }}'
group: '{{ ansible_user }}'
state: directory

- name: Copy hermes config script
template:
src: '{{ target }}.toml.j2'
Expand Down
22 changes: 22 additions & 0 deletions roles/hermes_config/templates/fragments/cheqd.toml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[[chains]]
id = 'cheqd-mainnet-1'
grpc_addr = 'http://{{ cheqd_ip }}:16190'
rpc_addr = 'http://{{ cheqd_ip }}:16157'
websocket_addr = 'ws://{{ cheqd_ip }}:16157/websocket'

rpc_timeout = '30s'
account_prefix = 'cheqd'
key_name = 'relayer'
address_type = {derivation = 'cosmos'}
store_prefix = 'ibc'
default_gas = 1000000
max_gas = 2000000
gas_price = {price = 35, denom = 'ncheq'}
gas_multiplier = 1.5
max_msg_num = 10
max_tx_size = 180000
clock_drift = '20s'
max_block_time = '15s'
trusting_period = '14days'
memo_prefix = '{{ memo }}'
trust_threshold = {numerator = '1', denominator = '3'}
22 changes: 22 additions & 0 deletions roles/hermes_config/templates/fragments/secret.toml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[[chains]]
id = 'secret-4'
rpc_addr = 'http://{{ secret_ip }}:17157'
grpc_addr = 'http://{{ secret_ip }}:17190'
websocket_addr = 'ws://{{ secret_ip }}:17157/websocket'

rpc_timeout = '30s'
account_prefix = 'secret'
key_name = 'relayer'
address_type = { derivation = 'cosmos' }
store_prefix = 'ibc'
default_gas = 100000
max_gas = 3500000
gas_price = { price = 0.0125, denom = 'uscrt' }
gas_multiplier = 1.25
max_msg_num = 30
max_tx_size = 2097152
clock_drift = '20s'
max_block_time = '10s'
trusting_period = '14days'
memo_prefix = '{{ memo }}'
trust_threshold = { numerator = '1', denominator = '3'}
22 changes: 22 additions & 0 deletions roles/hermes_config/templates/fragments/terra2.toml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[[chains]]
id = 'phoenix-1'
rpc_addr = 'http://{{ terra2_ip }}:11757'
grpc_addr = 'http://{{ terra2_ip }}:11790'
websocket_addr = 'ws://{{ terra2_ip }}:11757/websocket'

rpc_timeout = '20s'
account_prefix = 'terra'
key_name = 'relayer'
address_type = { derivation = 'cosmos' }
store_prefix = 'ibc'
default_gas = 100000
max_gas = 3500000
gas_price = { price = 0.015, denom = 'uluna' }
gas_multiplier = 1.2
max_msg_num = 30
max_tx_size = 100000
clock_drift = '45s'
max_block_time = '10s'
trusting_period = '10days'
memo_prefix = '{{ memo }}'
trust_threshold = { numerator = '1', denominator = '3' }

0 comments on commit 5ab5dbc

Please sign in to comment.