-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.toml
326 lines (290 loc) · 9.81 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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
# 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]
# 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: false]
misbehaviour = true
# Specify the connections mode.
[mode.connections]
# Whether or not to enable the connection workers for handshake completion. [Required]
enabled = false
# Specify the channels mode.
[mode.channels]
# Whether or not to enable the channel workers for handshake completion. [Required]
enabled = false
# 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 eagerly cleared. A value of '0' will disable
# periodic packet clearing. [Default: 100]
clear_interval = 100
# Whether or not to clear packets on start. [Default: false]
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 delivered successfully.
# Experimental feature. Affects telemetry if set to false.
# [Default: true]
tx_confirmation = true
# 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 = '127.0.0.1'
# 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 = 'x.x.x.x' ## Specify your monitoring (prometheus/grafana) IP
# Specify the port over which the built-in HTTP server will serve the metrics gathered
# by the telemetry service. Default: 3001
port = 3001
# A chains section includes parameters related to a chain and the full node to which
# the relayer can send transactions and queries.
# This section specifies the filters for policy based relaying.
#
# Default: no policy / filters, allow all packets on all channels.
#
# Only packet filtering based on channel identifier can be specified.
# A channel filter has two fields:
# 1. `policy` - one of two types are supported:
# - 'allow': permit relaying _only on_ the port/channel id in the list below,
# - 'deny': permit relaying on any channel _except for_ the list below.
# 2. `list` - the list of channels specified by the port and channel identifiers.
#
# Example configuration of a channel filter, denying packet relaying on channel with port ID 'transfer' and channel ID 'channel-0':
#
# [chains.packet_filter]
# policy = 'deny'
# list = [
# ['transfer', 'channel-0'],
# ]
# Specify that the transaction fees should be payed from this fee granter's account.
# Optional. If unspecified (the default behavior), then no fee granter is used, and
# the account specified in `key_name` will pay the tx fees for all transactions
# submitted to this chain.
# fee_granter = ''
[[chains]]
id = 'osmosis-1'
rpc_addr = 'http://127.0.0.1:49957'
grpc_addr = 'http://127.0.0.1:9060'
websocket_addr = 'ws://127.0.0.1:49957/websocket'
rpc_timeout = '20s'
account_prefix = 'osmo'
key_name = 'swu-osmosis'
store_prefix = 'ibc'
max_tx_size = 1800000
default_gas = 400000
max_gas = 120000000
gas_price = { price = 0.01, denom = 'uosmo' }
#gas_adjustment = 0.2
gas_multiplier = 1.5
max_msg_num = 30
clock_drift = '15s'
max_block_time = '10s'
trusting_period = '7days'
trust_threshold = { numerator = '1', denominator = '3' }
address_type = { derivation = 'cosmos' }
memo_prefix = 'Relayed by StakeWith.Us, earn yield on unagii.com'
[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-0'], # cosmoshub-4
['transfer', 'channel-4'], # core-1
['transfer', 'channel-42'], # juno-1
['transfer', 'channel-204'], # evmos_9001-2
['transfer', 'channel-122'], # injective-1
['ica*','*'], # allow relaying on all channels whose port starts with `ica`
]
[[chains]]
id = 'cosmoshub-4'
rpc_addr = 'http://127.0.0.1:47757'
grpc_addr = 'http://127.0.0.1:9050'
websocket_addr = 'ws://127.0.0.1:47757/websocket'
rpc_timeout = '30s'
account_prefix = 'cosmos'
key_name = 'swu-cosmos'
store_prefix = 'ibc'
default_gas = 300000
max_gas = 3500000
gas_price = { price = 0.0025, denom = 'uatom' }
#gas_adjustment = 0.1
gas_multiplier = 1.2
max_msg_num = 30
clock_drift = '20s'
max_block_time = '10s'
trusting_period = '14days'
trust_threshold = { numerator = '1', denominator = '3' }
address_type = { derivation = 'cosmos' }
memo_prefix = 'Relayed by StakeWith.Us, earn yield on unagii.com'
[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-141'], # osmosis-1
['transfer', 'channel-207'], # juno-1
['transfer', 'channel-292'], # evmos_9001-2
]
[[chains]]
id = 'juno-1'
rpc_addr = 'http://127.0.0.1:52257'
grpc_addr = 'http://127.0.0.1:9030'
websocket_addr = 'ws://127.0.0.1:52257/websocket'
rpc_timeout = '30s'
account_prefix = 'juno'
key_name = 'swu-juno'
store_prefix = 'ibc'
default_gas = 100000
max_gas = 2000000
gas_price = { price = 0.0025, denom = 'ujuno' }
#gas_adjustment = 0.1
gas_multiplier = 1.1
max_msg_num = 30
clock_drift = '15s'
max_block_time = '10s'
trusting_period = '14days'
trust_threshold = { numerator = '1', denominator = '3' }
address_type = { derivation = 'cosmos' }
memo_prefix = 'Relayed by StakeWith.Us, earn yield on unagii.com'
[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-1'], # cosmoshub-4
['transfer', 'channel-0'], # osmosis-1
['transfer', 'channel-59'], # injective-1
]
[[chains]]
id = 'evmos_9001-2'
rpc_addr = 'http://127.0.0.1:45557'
grpc_addr = 'http://127.0.0.1:9068'
websocket_addr = 'http://127.0.0.1:45557/websocket'
rpc_timeout = '30s'
account_prefix = 'evmos'
key_name = 'swu-evmos'
store_prefix = 'ibc'
default_gas = 100000
max_gas = 5000000
gas_price = { price = 20000000000, denom = 'aevmos' }
#gas_adjustment = 0.1
gas_multiplier = 1.1
max_msg_num = 30
clock_drift = '15s'
max_block_time = '10s'
trusting_period = '10days'
trust_threshold = { numerator = '1', denominator = '3' }
address_type = { derivation = 'ethermint', proto_type = { pk_type = '/ethermint.crypto.v1.ethsecp256k1.PubKey' } }
memo_prefix = 'Relayed by StakeWith.Us, earn yield on unagii.com'
[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-3'], # cosmoshub-4
['transfer', 'channel-0'], # osmosis-1
]
[[chains]]
id = 'injective-1'
rpc_addr = 'http://127.0.0.1:40057'
grpc_addr = 'http://127.0.0.1:9900'
websocket_addr = 'ws://127.0.0.1:40057/websocket'
rpc_timeout = '20s'
account_prefix = 'inj'
key_name = 'swu-injective'
address_type = { derivation = 'ethermint', proto_type = { pk_type = '/injective.crypto.v1beta1.ethsecp256k1.PubKey' } }
store_prefix = 'ibc'
default_gas = 100000
max_gas = 5000000
gas_price = { price = 500000000, denom = 'inj' }
#gas_adjustment = 0.2
gas_multiplier = 1.1
max_msg_num = 30
max_tx_size = 2097152
clock_drift = '15s'
max_block_time = '10s'
trusting_period = '14days'
memo_prefix = 'Relayed by StakeWith.Us, earn yield on unagii.com'
trust_threshold = { numerator = '1', denominator = '3' }
[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-8'], # Osmosis
['transfer', 'channel-82'], # Core-1 (Persistence)
['transfer', 'channel-78'], # Juno-1
['oracle', 'channel-3'], # LAOZI-MAINNET
]
[[chains]]
id = 'core-1'
rpc_addr = 'http://127.0.0.1:44457'
grpc_addr = 'http://127.0.0.1:9010'
websocket_addr = 'ws://127.0.0.1:44457/websocket'
rpc_timeout = '30s'
account_prefix = 'persistence'
key_name = 'swu-persistence'
store_prefix = 'ibc'
default_gas = 100000
max_gas = 2000000
gas_price = { price = 0.001, denom = 'uxprt' }
#gas_adjustment = 0.1
gas_multiplier = 1.1
max_msg_num = 30
clock_drift = '15s'
max_block_time = '10s'
trusting_period = '14days'
trust_threshold = { numerator = '1', denominator = '3' }
address_type = { derivation = 'cosmos' }
memo_prefix = 'Relayed by StakeWith.Us, earn yield on unagii.com'
[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-6'], # osmosis-1
['transfer', 'channel-41'], # Injective-1
['ica*','*'], # allow relaying on all channels whose port starts with `ica`
]
[[chains]]
id = 'laozi-mainnet'
rpc_addr = 'http://localhost:58857'
grpc_addr = 'http://localhost:9038'
websocket_addr = 'ws://localhost:58857/websocket'
rpc_timeout = '10s'
account_prefix = 'band'
key_name = 'swu-band'
store_prefix = 'ibc'
default_gas = 100000
max_gas = 6666720
gas_price = { price = 0, denom = 'uband' }
#gas_adjustment = 0.1
gas_multiplier = 1.5
max_msg_num = 6
max_tx_size = 2097152
clock_drift = '5s'
max_block_time = '10s'
trusting_period = '14days'
trust_threshold = { numerator = '1', denominator = '3' }
address_type = { derivation = 'cosmos' }
memo_prefix = 'Relayed by StakeWith.Us, earn yield on unagii.com'
[chains.packet_filter]
policy = 'allow'
list = [
['oracle', 'channel-7'], # Injective-1
]