-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.toml
230 lines (186 loc) · 7.83 KB
/
config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
# Description of the parameters below can be found here: https://hermes.informal.systems/documentation/configuration/description.html
# The global section has parameters that apply globally to the relayer operation.
[global]
# Specify the verbosity for the relayer logging output. Default: 'info'
# Valid options are 'error', 'warn', 'info', 'debug', 'trace'.
log_level = 'info'
# Specify the mode to be used by the relayer. [Required]
[mode]
# Specify the client mode.
[mode.clients]
# Whether or not to enable the client workers. [Required]
enabled = true
# Whether or not to enable periodic refresh of clients. [Default: true]
# This feature only applies to clients that underlie an open channel.
# For Tendermint clients, the frequency at which Hermes refreshes them is 2/3 of their
# trusting period (e.g., refresh every ~9 days if the trusting period is 14 days).
# Note: Even if this is disabled, clients will be refreshed automatically if
# there is activity on a connection or channel they are involved with.
refresh = true
# Whether or not to enable misbehaviour detection for clients. [Default: true]
misbehaviour = true
# Specify the connections mode.
[mode.connections]
# Whether or not to enable the connection workers for handshake completion. [Required]
enabled = true
# Specify the channels mode.
[mode.channels]
# Whether or not to enable the channel workers for handshake completion. [Required]
enabled = true
# Specify the packets mode.
[mode.packets]
# Whether or not to enable the packet workers. [Required]
enabled = true
# Parametrize the periodic packet clearing feature.
# Interval (in number of blocks) at which pending packets
# should be periodically cleared. A value of '0' will disable
# periodic packet clearing. [Default: 100]
clear_interval = 0 # set to 0, for requeueing packets as defined below in `tx_confirmation`
# Whether or not to clear packets on start. [Default: true]
clear_on_start = true
# Toggle the transaction confirmation mechanism.
# The tx confirmation mechanism periodically queries the `/tx_search` RPC
# endpoint to check that previously-submitted transactions
# (to any chain in this config file) have been successfully delivered.
# If they have not been, and `clear_interval = 0`, then those packets are
# queued up for re-submission.
# If set to `false`, the following telemetry metrics will be disabled:
# `acknowledgment_packets_confirmed`, `receive_packets_confirmed` and `timeout_packets_confirmed`.
# [Default: false]
tx_confirmation = true
# Auto register the counterparty payee on a destination chain to
# the relayer's address on the source chain. This can be used
# for simple configuration of the relayer to receive fees for
# relaying RecvPacket on fee-enabled channels.
# For more complex configuration, turn this off and use the CLI
# to manually register the payee addresses.
# [Default: false]
auto_register_counterparty_payee = false
# The REST section defines parameters for Hermes' built-in RESTful API.
# https://hermes.informal.systems/rest.html
[rest]
# Whether or not to enable the REST service. Default: false
enabled = true
# Specify the IPv4/6 host over which the built-in HTTP server will serve the RESTful
# API requests. Default: 127.0.0.1
host = '0.0.0.0' # need to set this to `0.0.0.0` to allow external access within docker! check here: https://github.com/informalsystems/hermes/issues/3592#issuecomment-1712645510
# Specify the port over which the built-in HTTP server will serve the restful API
# requests. Default: 3000
port = 3000
# The telemetry section defines parameters for Hermes' built-in telemetry capabilities.
# https://hermes.informal.systems/telemetry.html
[telemetry]
# Whether or not to enable the telemetry service. Default: false
enabled = true
# Specify the IPv4/6 host over which the built-in HTTP server will serve the metrics
# gathered by the telemetry service. Default: 127.0.0.1
host = '0.0.0.0' # need to set this to `0.0.0.0` to allow external access within docker! check here: https://github.com/informalsystems/hermes/issues/3592#issuecomment-1712645510
# Specify the port over which the built-in HTTP server will serve the metrics gathered
# by the telemetry service. Default: 3001
port = 3001
[telemetry.buckets.latency_submitted]
start = 500
end = 20000
buckets = 10
[telemetry.buckets.latency_confirmed]
start = 1000
end = 30000
buckets = 10
[[chains]]
id = 'elgafar-1'
type = 'CosmosSdk'
rpc_addr = 'https://rpc.elgafar-1.stargaze-apis.com:443' # 'https://stargaze-rpc.polkachu.com:443' 'https://rpc.elgafar-1.stargaze-apis.com:443'
grpc_addr = 'http://grpc-1.elgafar-1.stargaze-apis.com:26660' # 'http://stargaze-grpc.polkachu.com:13790' # 'http://grpc-1.elgafar-1.stargaze-apis.com:26660'
rpc_timeout = '10s'
account_prefix = 'stars'
key_name = 'stargaze_ark_relayer'
store_prefix = 'ibc'
default_gas = 40000
max_gas = 1500000
gas_multiplier = 1.3
max_msg_num = 1 # relay only 1 packet, otherwise max gas is exceeded
max_tx_size = 4194304 # 4MiB
clock_drift = '60s'
max_block_time = '30s'
client_refresh_rate = "1/3"
ccv_consumer_chain = false
memo_prefix = 'Powered by Ark Protocol'
sequential_batch_tx = false
# trusting_period = '1209599s' # 14 days (unbonding period) minus 1 sec
# address_type = { derivation = 'cosmos' }
[chains.event_source]
mode = 'push'
url = 'wss://rpc.elgafar-1.stargaze-apis.com:443/websocket' # 'wss://stargaze-rpc.polkachu.com:443/websocket' 'wss://rpc.elgafar-1.stargaze-apis.com:443/websocket'
batch_delay = '500ms'
[chains.trust_threshold]
numerator = '1'
denominator = '3'
[chains.gas_price]
price = 0.04
denom = 'ustars'
[chains.packet_filter]
policy = 'allow'
list = [
# Stargaze ICS721 channels
['wasm.stars17urnsung008eypzpkx6scwft9x7948uc3039ltxrygqwq97nq0asyfm2s9', 'channel-977'],
['wasm.stars17urnsung008eypzpkx6scwft9x7948uc3039ltxrygqwq97nq0asyfm2s9', 'channel-978'], # not WLed in incoming proxy
]
[chains.packet_filter.min_fees]
[chains.address_type]
derivation = 'cosmos'
[[chains]]
id = "osmo-test-5"
type = "CosmosSdk"
# often testnet is highly unreliable, often this error occurs: `Internal error: transaction indexing is disabled`
# so we need to wait for the transaction to be indexed before packets can be relayed.
# Also RPCs for some reason dont work from time to time, so try using with and without `:443`. Rn `https://rpc.osmotest5.osmosis.zone` works best.
# Also if it doesnt work, wait for a while and try again (few hours or next day...).
rpc_addr = "https://osmosis-testnet-rpc.polkachu.com:443" # "https://rpc.osmotest5.osmosis.zone:443" "https://rpc.osmo.test.yieldpay.finance:443" "https://osmosis-testnet-rpc.polkachu.com:443"
grpc_addr = "https://grpc.osmo.test.yieldpay.finance:443" # "https://grpc.osmotest5.osmosis.zone" "https://grpc.osmo.test.yieldpay.finance:443"
rpc_timeout = "10s"
# trusted_node = false
account_prefix = "osmo"
key_name = "osmosis_ark_relayer"
key_store_type = "Test"
store_prefix = "ibc"
default_gas = 100000
max_gas = 4000000
gas_multiplier = 1.3
max_msg_num = 30
max_tx_size = 180000
# max_grpc_decoding_size = 33554432
# query_packets_chunk_size = 50
clock_drift = "5s"
max_block_time = "30s"
client_refresh_rate = "1/3"
ccv_consumer_chain = false
memo_prefix = ""
sequential_batch_tx = false
[chains.event_source]
mode = "push"
url = "wss://rpc.osmo.test.yieldpay.finance/websocket"
batch_delay = "500ms"
[chains.trust_threshold]
numerator = 2
denominator = 3
[chains.gas_price]
price = 0.025
denom = "uosmo"
[chains.packet_filter]
policy = "allow"
list = [
# Osmosis ICS721 channels
['wasm.osmo1pgqueks7m5fw8gjta6kg6slk4qfvdkgavlwnvzwt8d9ejufyz4tssl5j70', 'channel-8134'],
['wasm.osmo1pgqueks7m5fw8gjta6kg6slk4qfvdkgavlwnvzwt8d9ejufyz4tssl5j70', 'channel-8135'], # not WLed in incoming proxy
]
[chains.packet_filter.min_fees]
# [chains.dynamic_gas_price]
# enabled = false
# multiplier = 1.1
# max = 0.6
[chains.address_type]
derivation = "cosmos"
[chains.excluded_sequences]
# [tracing_server]
# enabled = false
# port = 5555