diff --git a/README.md b/README.md index 6bdb291..74e2493 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,32 @@ -# ibc-relayer +# IBC-Relayer Ansible Setup -Hello world +## Design Philosophy + +1. Support both hermes and rly +1. Make config file extensible by DRY principle + +## Guide + +First copy it to your own inventory file so you can customize it to suit your needs: + +```bash +cp inventory.sample inventory +``` + +To install rly + +```bash +ansible-playbook main_rly_install.yml +``` + +To install Hermes + +```bash +ansible-playbook main_hermes_install.yml +``` + +To install a specific Hermes relayer hub + +```bash +ansible-playbook main_hermes_config.yml -e "target=juno" +``` diff --git a/group_vars/gravity.yml b/group_vars/gravity.yml new file mode 100644 index 0000000..d0fe8bc --- /dev/null +++ b/group_vars/gravity.yml @@ -0,0 +1,2 @@ +rest_port: 3003 +telemetry_port: 4003 diff --git a/group_vars/juno.yml b/group_vars/juno.yml new file mode 100644 index 0000000..71ac8e4 --- /dev/null +++ b/group_vars/juno.yml @@ -0,0 +1,2 @@ +rest_port: 3001 +telemetry_port: 4001 diff --git a/group_vars/kujira.yml b/group_vars/kujira.yml new file mode 100644 index 0000000..3863053 --- /dev/null +++ b/group_vars/kujira.yml @@ -0,0 +1,2 @@ +rest_port: 3005 +telemetry_port: 4005 diff --git a/group_vars/osmosis.yml b/group_vars/osmosis.yml new file mode 100644 index 0000000..6b6348c --- /dev/null +++ b/group_vars/osmosis.yml @@ -0,0 +1,2 @@ +rest_port: 3002 +telemetry_port: 4002 diff --git a/inventory.sample b/inventory.sample.ini similarity index 51% rename from inventory.sample rename to inventory.sample.ini index 451a22e..6ead6c0 100644 --- a/inventory.sample +++ b/inventory.sample.ini @@ -5,7 +5,9 @@ ansible_user=ubuntu ansible_port=22 ansible_ssh_private_key_file="~/.ssh/id_rsa" -relayer1_ip="10.0.0.2" -relayer2_ip="10.0.0.3" -relayer3_ip="10.0.0.4" -relayer4_ip="10.0.0.5" + +# 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" \ No newline at end of file diff --git a/roles/hermes_config/templates/configs/gravity.toml.j2 b/roles/hermes_config/templates/configs/gravity.toml.j2 new file mode 100644 index 0000000..0392b62 --- /dev/null +++ b/roles/hermes_config/templates/configs/gravity.toml.j2 @@ -0,0 +1,63 @@ +{% include 'fragments/header.toml.j2' %} + + +{% include 'fragments/gravity.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-0'], # Bitcanna + ['transfer', 'channel-34'], # Chihuahua + ['transfer', 'channel-8'], # Juno + ['transfer', 'channel-10'], # Osmosis + ['transfer', 'channel-7'], # Stargaze + ['transfer', 'channel-28'], # Umee +] + +{% include 'fragments/bitcanna.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-8'], # Gravity +] + +{% include 'fragments/chihuahua.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-15'], # Gravity +] + +{% include 'fragments/juno.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-31'], # Gravity +] + +{% include 'fragments/osmosis.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-144'], # Gravity +] + +{% include 'fragments/stargaze.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-6'], # Gravity +] + +{% include 'fragments/umee.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-9'], # Gravity +] diff --git a/roles/hermes_config/templates/configs/injective.toml.j2 b/roles/hermes_config/templates/configs/injective.toml.j2 index 716bde8..9dc5868 100644 --- a/roles/hermes_config/templates/configs/injective.toml.j2 +++ b/roles/hermes_config/templates/configs/injective.toml.j2 @@ -6,18 +6,10 @@ [chains.packet_filter] policy = 'allow' list = [ - ['transfer', 'channel-8'], # Osmosis ['transfer', 'channel-76'], # Chihuahua - ['transfer', 'channel-83'], # Evmos ['transfer', 'channel-1'], # Cosmos -] - -{% include 'fragments/osmosis.toml.j2' %} - -[chains.packet_filter] -policy = 'allow' -list = [ - ['transfer', 'channel-122'], # Injective + ['transfer', 'channel-83'], # Evmos + ['transfer', 'channel-8'], # Osmosis ] {% include 'fragments/chihuahua.toml.j2' %} @@ -42,4 +34,12 @@ list = [ policy = 'allow' list = [ ['transfer', 'channel-10'], # Injective -] \ No newline at end of file +] + +{% include 'fragments/osmosis.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-122'], # Injective +] diff --git a/roles/hermes_config/templates/configs/juno.toml.j2 b/roles/hermes_config/templates/configs/juno.toml.j2 new file mode 100644 index 0000000..2f7abcd --- /dev/null +++ b/roles/hermes_config/templates/configs/juno.toml.j2 @@ -0,0 +1,81 @@ +{% include 'fragments/header.toml.j2' %} + + +{% include 'fragments/juno.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-29'], # Akash + ['transfer', 'channel-50'], # Bitcanna + ['transfer', 'channel-28'], # Chihuahua + ['transfer', 'channel-70'], # Evmos + ['transfer', 'channel-58'], # Kichain + ['transfer', 'channel-5'], # Sifchain + ['transfer', 'channel-20'], # Stargaze + ['transfer', 'channel-62'], # Umee +] + +{% include 'fragments/akash.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-35'], # Juno +] + +{% include 'fragments/bitcanna.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-10'], # Juno +] + +{% include 'fragments/chihuahua.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-11'], # Juno +] + +{% include 'fragments/evmos.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-5'], # Juno +] + +{% include 'fragments/kichain.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-8'], # Juno +] + +{% include 'fragments/sifchain.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-14'], # Juno +] + +{% include 'fragments/stargaze.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-5'], # Juno +] + +{% include 'fragments/umee.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-2'], # Juno +] diff --git a/roles/hermes_config/templates/configs/kujira.toml.j2 b/roles/hermes_config/templates/configs/kujira.toml.j2 new file mode 100644 index 0000000..257b53c --- /dev/null +++ b/roles/hermes_config/templates/configs/kujira.toml.j2 @@ -0,0 +1,54 @@ +{% include 'fragments/header.toml.j2' %} + + +{% include 'fragments/kujira.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-9'], # Axelar + ['transfer', 'channel-1'], # Juno + ['transfer', 'channel-0'], # Cosmos + ['transfer', 'channel-23'], # Evmos + ['transfer', 'channel-3'], # Osmosis +] + +{% include 'fragments/axelar.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-14'], # kujira +] + +{% include 'fragments/cosmos.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-343'], # Kujira +] + +{% include 'fragments/evmos.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-18'], # Kujira +] + +{% include 'fragments/juno.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-87'], # kujira +] + +{% include 'fragments/osmosis.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-259'], # kujira +] \ No newline at end of file diff --git a/roles/hermes_config/templates/configs/osmosis.toml.j2 b/roles/hermes_config/templates/configs/osmosis.toml.j2 new file mode 100644 index 0000000..8b97d88 --- /dev/null +++ b/roles/hermes_config/templates/configs/osmosis.toml.j2 @@ -0,0 +1,81 @@ +{% include 'fragments/header.toml.j2' %} + + +{% include 'fragments/osmosis.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-1'], # Akash + ['transfer', 'channel-51'], # Bitcanna + ['transfer', 'channel-113'], # Chihuahua + ['transfer', 'channel-204'], # Evmos + ['transfer', 'channel-77'], # Kichain + ['transfer', 'channel-47'], # Sifchain + ['transfer', 'channel-75'], # Stargaze + ['transfer', 'channel-184'], # Umee +] + +{% include 'fragments/akash.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-9'], # Osmosis +] + +{% include 'fragments/bitcanna.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-1'], # Osmosis +] + +{% include 'fragments/chihuahua.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-7'], # Osmosis +] + +{% include 'fragments/evmos.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-0'], # Osmosis +] + +{% include 'fragments/kichain.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-0'], # Osmosis +] + +{% include 'fragments/sifchain.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-17'], # Osmosis +] + +{% include 'fragments/stargaze.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-0'], # Osmosis +] + +{% include 'fragments/umee.toml.j2' %} + +[chains.packet_filter] +policy = 'allow' +list = [ + ['transfer', 'channel-0'], # Osmosis +] diff --git a/roles/hermes_config/templates/fragments/akash.toml.j2 b/roles/hermes_config/templates/fragments/akash.toml.j2 new file mode 100644 index 0000000..ec2473a --- /dev/null +++ b/roles/hermes_config/templates/fragments/akash.toml.j2 @@ -0,0 +1,22 @@ +[[chains]] +id = 'akashnet-2' +rpc_addr = 'http:/{{ akash_ip }}:12857' +grpc_addr = 'http:/{{ akash_ip }}:12890' +websocket_addr = 'ws:/{{ akash_ip }}:12857/websocket' + +rpc_timeout = '20s' +account_prefix = 'akash' +key_name = 'relayer' +address_type = { derivation = 'cosmos' } +store_prefix = 'ibc' +default_gas = 100000 +max_gas = 1000000 +gas_price = { price = 0.025, denom = 'uakt' } +gas_multiplier = 1.2 +max_msg_num = 30 +max_tx_size = 1800000 +clock_drift = '15s' +max_block_time = '10s' +trusting_period = '14days' +memo_prefix = '{{ memo }}' +trust_threshold = { numerator = '1', denominator = '3' } diff --git a/roles/hermes_config/templates/fragments/axelar.toml.j2 b/roles/hermes_config/templates/fragments/axelar.toml.j2 new file mode 100644 index 0000000..e8ef87c --- /dev/null +++ b/roles/hermes_config/templates/fragments/axelar.toml.j2 @@ -0,0 +1,22 @@ +[[chains]] +id = 'axelar-dojo-1' +rpc_addr = 'http://{{ axelar_ip }}:15157' +grpc_addr = 'http://{{ axelar_ip }}:15190' +websocket_addr = 'ws://{{ axelar_ip }}:15157/websocket' + +rpc_timeout = '20s' +account_prefix = 'axelar' +key_name = 'relayer' +address_type = { derivation = 'cosmos' } +store_prefix = 'ibc' +default_gas = 100000 +max_gas = 1000000 +gas_price = { price = 0.0025, denom = 'uaxl' } +gas_multiplier = 1.2 +max_msg_num = 30 +max_tx_size = 1800000 +clock_drift = '15s' +max_block_time = '10s' +trusting_period = '14days' +memo_prefix = '{{ memo }}' +trust_threshold = { numerator = '1', denominator = '3' } diff --git a/roles/hermes_config/templates/fragments/bitcanna.toml.j2 b/roles/hermes_config/templates/fragments/bitcanna.toml.j2 new file mode 100644 index 0000000..90c435c --- /dev/null +++ b/roles/hermes_config/templates/fragments/bitcanna.toml.j2 @@ -0,0 +1,22 @@ +[[chains]] +id = 'bitcanna-1' +rpc_addr = 'http://{{ bitcanna_ip }}:13057' +grpc_addr = 'http://{{ bitcanna_ip }}:13090' +websocket_addr = 'ws://{{ bitcanna_ip }}:13057/websocket' + +rpc_timeout = '20s' +account_prefix = 'bcna' +key_name = 'relayer' +store_prefix = 'ibc' +address_type = { derivation = 'cosmos' } +default_gas = 100000 +max_gas = 1000000 +gas_price = { price = 0.001, denom = 'ubcna' } +gas_multiplier = 1.2 +max_msg_num = 30 +max_tx_size = 1800000 +clock_drift = '15s' +max_block_time = '10s' +trusting_period = '7days' +memo_prefix = '{{ memo }}' +trust_threshold = { numerator = '1', denominator = '3' } diff --git a/roles/hermes_config/templates/fragments/chihuahua.toml.j2 b/roles/hermes_config/templates/fragments/chihuahua.toml.j2 index cb66911..82c2fd1 100644 --- a/roles/hermes_config/templates/fragments/chihuahua.toml.j2 +++ b/roles/hermes_config/templates/fragments/chihuahua.toml.j2 @@ -1,8 +1,8 @@ [[chains]] id = 'chihuahua-1' -rpc_addr = 'http://{{ relayer2_ip }}:12957' -grpc_addr = 'http://{{ relayer2_ip }}:12990' -websocket_addr = 'ws://{{ relayer2_ip }}:12957/websocket' +rpc_addr = 'http://{{ chihuahua_ip }}:12957' +grpc_addr = 'http://{{ chihuahua_ip }}:12990' +websocket_addr = 'ws://{{ chihuahua_ip }}:12957/websocket' rpc_timeout = '20s' account_prefix = 'chihuahua' diff --git a/roles/hermes_config/templates/fragments/cosmos.toml.j2 b/roles/hermes_config/templates/fragments/cosmos.toml.j2 index d586a4d..41ea677 100644 --- a/roles/hermes_config/templates/fragments/cosmos.toml.j2 +++ b/roles/hermes_config/templates/fragments/cosmos.toml.j2 @@ -1,8 +1,8 @@ [[chains]] id = 'cosmoshub-4' -rpc_addr = 'http://{{ relayer3_ip }}:14957' -grpc_addr = 'http://{{ relayer3_ip }}:14990' -websocket_addr = 'ws://{{ relayer3_ip }}:14957/websocket' +rpc_addr = 'http://{{ cosmos_ip }}:14957' +grpc_addr = 'http://{{ cosmos_ip }}:14990' +websocket_addr = 'ws://{{ cosmos_ip }}:14957/websocket' rpc_timeout = '20s' account_prefix = 'cosmos' diff --git a/roles/hermes_config/templates/fragments/evmos.toml.j2 b/roles/hermes_config/templates/fragments/evmos.toml.j2 index e8288d8..5526f64 100644 --- a/roles/hermes_config/templates/fragments/evmos.toml.j2 +++ b/roles/hermes_config/templates/fragments/evmos.toml.j2 @@ -1,8 +1,8 @@ [[chains]] id = 'evmos_9001-2' -rpc_addr = 'http://{{ relayer3_ip }}:13457' -grpc_addr = 'http://{{ relayer3_ip }}:13490' -websocket_addr = 'ws://{{ relayer3_ip }}:13457/websocket' +rpc_addr = 'http://{{ evmos_ip }}:13457' +grpc_addr = 'http://{{ evmos_ip }}:13490' +websocket_addr = 'ws://{{ evmos_ip }}:13457/websocket' rpc_timeout = '20s' account_prefix = 'evmos' diff --git a/roles/hermes_config/templates/fragments/gravity.toml.j2 b/roles/hermes_config/templates/fragments/gravity.toml.j2 new file mode 100644 index 0000000..b90520b --- /dev/null +++ b/roles/hermes_config/templates/fragments/gravity.toml.j2 @@ -0,0 +1,22 @@ +[[chains]] +id = 'gravity-bridge-3' +rpc_addr = 'http://{{ gravity_ip }}:14257' +grpc_addr = 'http://{{ gravity_ip }}:14290' +websocket_addr = 'ws://{{ gravity_ip }}:14257/websocket' + +rpc_timeout = '20s' +account_prefix = 'gravity' +key_name = 'relayer' +address_type = { derivation = 'cosmos' } +store_prefix = 'ibc' +default_gas = 100000 +max_gas = 5000000 +gas_price = { price = 0.000, denom = 'ugraviton' } +gas_multiplier = 1.2 +max_msg_num = 30 +max_tx_size = 1800000 +clock_drift = '15s' +max_block_time = '10s' +trusting_period = '7days' +memo_prefix = '{{ memo }}' +trust_threshold = { numerator = '1', denominator = '3' } diff --git a/roles/hermes_config/templates/fragments/injective.toml.j2 b/roles/hermes_config/templates/fragments/injective.toml.j2 index 4864354..68f9ecd 100644 --- a/roles/hermes_config/templates/fragments/injective.toml.j2 +++ b/roles/hermes_config/templates/fragments/injective.toml.j2 @@ -1,8 +1,8 @@ [[chains]] id = 'injective-1' -rpc_addr = 'http://{{ relayer4_ip }}:14357' -grpc_addr = 'http://{{ relayer4_ip }}:14390' -websocket_addr = 'ws://{{ relayer4_ip }}:14357/websocket' +rpc_addr = 'http://{{ injective_ip }}:14357' +grpc_addr = 'http://{{ injective_ip }}:14390' +websocket_addr = 'ws://{{ injective_ip }}:14357/websocket' rpc_timeout = '20s' account_prefix = 'inj' diff --git a/roles/hermes_config/templates/fragments/juno.toml.j2 b/roles/hermes_config/templates/fragments/juno.toml.j2 new file mode 100644 index 0000000..55dd222 --- /dev/null +++ b/roles/hermes_config/templates/fragments/juno.toml.j2 @@ -0,0 +1,22 @@ +[[chains]] +id = 'juno-1' +rpc_addr = 'http://{{ juno_ip }}:12657' +grpc_addr = 'http://{{ juno_ip }}:12690' +websocket_addr = 'ws://{{ juno_ip }}:12657/websocket' + +rpc_timeout = '20s' +account_prefix = 'juno' +key_name = 'relayer' +address_type = { derivation = 'cosmos' } +store_prefix = 'ibc' +default_gas = 100000 +max_gas = 1000000 +gas_price = { price = 0.0025, denom = 'ujuno' } +gas_multiplier = 1.2 +max_msg_num = 30 +max_tx_size = 1800000 +clock_drift = '15s' +max_block_time = '10s' +trusting_period = '14days' +memo_prefix = '{{ memo }}' +trust_threshold = { numerator = '1', denominator = '3' } diff --git a/roles/hermes_config/templates/fragments/kichain.toml.j2 b/roles/hermes_config/templates/fragments/kichain.toml.j2 new file mode 100644 index 0000000..9dc02d0 --- /dev/null +++ b/roles/hermes_config/templates/fragments/kichain.toml.j2 @@ -0,0 +1,22 @@ +[[chains]] +id = 'kichain-2' +rpc_addr = 'http://{{ kichain_ip }}:13557' +grpc_addr = 'http://{{ kichain_ip }}:13590' +websocket_addr = 'ws://{{ kichain_ip }}:13557/websocket' + +rpc_timeout = '20s' +account_prefix = 'ki' +key_name = 'relayer' +store_prefix = 'ibc' +address_type = { derivation = 'cosmos' } +default_gas = 200000 +max_gas = 3500000 +gas_price = { price = 0.025, denom = 'uxki' } +gas_multiplier = 1.2 +max_msg_num = 30 +max_tx_size = 1800000 +clock_drift = '15s' +max_block_time = '10s' +trusting_period = '7days' +memo_prefix = '{{ memo }}' +trust_threshold = { numerator = '1', denominator = '3' } diff --git a/roles/hermes_config/templates/fragments/kujira.toml.j2 b/roles/hermes_config/templates/fragments/kujira.toml.j2 new file mode 100644 index 0000000..851043b --- /dev/null +++ b/roles/hermes_config/templates/fragments/kujira.toml.j2 @@ -0,0 +1,22 @@ +[[chains]] +id = 'kaiyo-1' +rpc_addr = 'http://{{ kujira_ip }}:11857' +grpc_addr = 'http://{{ kujira_ip }}:11890' +websocket_addr = 'ws://{{ kujira_ip }}:11857/websocket' + +rpc_timeout = '20s' +account_prefix = 'kujira' +key_name = 'relayer' +address_type = { derivation = 'cosmos' } +store_prefix = 'ibc' +default_gas = 100000 +max_gas = 3500000 +gas_price = { price = 0.00125, denom = 'ukuji' } +gas_multiplier = 1.2 +max_msg_num = 30 +max_tx_size = 2000000 +clock_drift = '45s' +max_block_time = '10s' +trusting_period = '10days' +memo_prefix = '{{ memo }}' +trust_threshold = { numerator = '1', denominator = '3' } diff --git a/roles/hermes_config/templates/fragments/osmosis.toml.j2 b/roles/hermes_config/templates/fragments/osmosis.toml.j2 index 2a48666..abd88c7 100644 --- a/roles/hermes_config/templates/fragments/osmosis.toml.j2 +++ b/roles/hermes_config/templates/fragments/osmosis.toml.j2 @@ -1,8 +1,8 @@ [[chains]] id = 'osmosis-1' -rpc_addr = 'http://{{ relayer2_ip }}:12557' -grpc_addr = 'http://{{ relayer2_ip }}:12590' -websocket_addr = 'ws://{{ relayer2_ip }}:12557/websocket' +rpc_addr = 'http://{{ osmosis_ip }}:12557' +grpc_addr = 'http://{{ osmosis_ip }}:12590' +websocket_addr = 'ws://{{ osmosis_ip }}:12557/websocket' rpc_timeout = '20s' account_prefix = 'osmo' diff --git a/roles/hermes_config/templates/fragments/sifchain.toml.j2 b/roles/hermes_config/templates/fragments/sifchain.toml.j2 new file mode 100644 index 0000000..fa7c8d2 --- /dev/null +++ b/roles/hermes_config/templates/fragments/sifchain.toml.j2 @@ -0,0 +1,22 @@ +[[chains]] +id = 'sifchain-1' +rpc_addr = 'http://{{ sifchain_ip }}:13257' +grpc_addr = 'http://{{ sifchain_ip }}:13290' +websocket_addr = 'ws://{{ sifchain_ip }}:13257/websocket' + +rpc_timeout = '20s' +account_prefix = 'sif' +key_name = 'relayer' +store_prefix = 'ibc' +address_type = { derivation = 'cosmos' } +default_gas = 100000 +max_gas = 1000000 +gas_price = { price = 0.001, denom = 'rowan' } +gas_multiplier = 1.2 +max_msg_num = 30 +max_tx_size = 1800000 +clock_drift = '15s' +max_block_time = '10s' +trusting_period = '14days' +memo_prefix = '{{ memo }}' +trust_threshold = { numerator = '1', denominator = '3' } diff --git a/roles/hermes_config/templates/fragments/stargaze.toml.j2 b/roles/hermes_config/templates/fragments/stargaze.toml.j2 new file mode 100644 index 0000000..207d625 --- /dev/null +++ b/roles/hermes_config/templates/fragments/stargaze.toml.j2 @@ -0,0 +1,22 @@ +[[chains]] +id = 'stargaze-1' +rpc_addr = 'http://{{ stargaze_ip }}:13757' +grpc_addr = 'http://{{ stargaze_ip }}:13790' +websocket_addr = 'ws://{{ stargaze_ip }}:13757/websocket' + +rpc_timeout = '20s' +account_prefix = 'stars' +key_name = 'relayer' +store_prefix = 'ibc' +address_type = { derivation = 'cosmos' } +default_gas = 100000 +max_gas = 1000000 +gas_price = { price = 0.001, denom = 'ustars' } +gas_multiplier = 1.2 +max_msg_num = 30 +max_tx_size = 1800000 +clock_drift = '15s' +max_block_time = '10s' +trusting_period = '14days' +memo_prefix = '{{ memo }}' +trust_threshold = { numerator = '1', denominator = '3' } diff --git a/roles/hermes_config/templates/fragments/umee.toml.j2 b/roles/hermes_config/templates/fragments/umee.toml.j2 new file mode 100644 index 0000000..5935a0a --- /dev/null +++ b/roles/hermes_config/templates/fragments/umee.toml.j2 @@ -0,0 +1,22 @@ +[[chains]] +id = 'umee-1' +rpc_addr = 'http://{{ umee_ip }}:13657' +grpc_addr = 'http://{{ umee_ip }}:13690' +websocket_addr = 'ws://{{ umee_ip }}:13657/websocket' + +rpc_timeout = '20s' +account_prefix = 'umee' +key_name = 'relayer' +store_prefix = 'ibc' +address_type = { derivation = 'cosmos' } +default_gas = 100000 +max_gas = 1000000 +gas_price = { price = 0.001, denom = 'uumee' } +gas_multiplier = 1.2 +max_msg_num = 30 +max_tx_size = 1800000 +clock_drift = '15s' +max_block_time = '10s' +trusting_period = '14days' +memo_prefix = '{{ memo }}' +trust_threshold = { numerator = '1', denominator = '3' } \ No newline at end of file