-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yml
279 lines (267 loc) · 13.6 KB
/
config.yml
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
# IMPORTANT: Replace all values within <angle_brackets> with your specific configuration details.
# The solver will not starup with any unconfigured values in the final configuration.
metrics:
prometheus_address: "0.0.0.0:8001"
coingecko:
base_url: "https://pro-api.coingecko.com/api/v3/"
# API key is optional here. If you do not have an API key, you can remove the
# api_key option all together. If you have a coin gecko API key, we will use
# it to get more up to date gas costs. If you specify an API key, you should
# reduce the requests per minute and cache refresh interval according to your
# keys limits. The values are currently set for no API key use.
api_key: <api_key>
requests_per_minute: 2
cache_refresh_interval: "15m"
order_filler:
worker_count: 10
transfer_monitor:
poll_interval: 5s
# The fund_rebalancer config is optional. If you do not want the solver to
# rebalance your funds across chains via Skip GO (via the CCTP slow path CCTP, they
# will not be fast transferred via Skip Go Fast), you can omit the
# fund_rebalancer config all together.
fund_rebalancer:
1:
target_amount: <target_amount> # e.g. "1000000000"
min_allowed_amount: <min_allowed_amount> # e.g. "500000000"
max_rebalancing_gas_cost_uusdc: <max_rebalancing_gas_cost_uusdc> # e.g. 1000000
profitable_rebalance_timeout: <profitable_rebalance_timeout> # e.g. 1h
transfer_cost_cap_uusdc: <transfer_cost_cap_uusdc> # e.g. 2000000
42161:
target_amount: <target_amount> # e.g. "1000000000"
min_allowed_amount: <min_allowed_amount> # e.g. "500000000"
max_rebalancing_gas_cost_uusdc: <max_rebalancing_gas_cost_uusdc> # e.g. 1000000
profitable_rebalance_timeout: <profitable_rebalance_timeout> # e.g. 1h
transfer_cost_cap_uusdc: <transfer_cost_cap_uusdc> # e.g. 2000000
43114:
target_amount: <target_amount> # e.g. "1000000000"
min_allowed_amount: <min_allowed_amount> # e.g. "500000000"
max_rebalancing_gas_cost_uusdc: <max_rebalancing_gas_cost_uusdc> # e.g. 1000000
profitable_rebalance_timeout: <profitable_rebalance_timeout> # e.g. 1h
transfer_cost_cap_uusdc: <transfer_cost_cap_uusdc> # e.g. 2000000
137:
target_amount: <target_amount> # e.g. "1000000000"
min_allowed_amount: <min_allowed_amount> # e.g. "500000000"
max_rebalancing_gas_cost_uusdc: <max_rebalancing_gas_cost_uusdc> # e.g. 1000000
profitable_rebalance_timeout: <profitable_rebalance_timeout> # e.g. 1h
transfer_cost_cap_uusdc: <transfer_cost_cap_uusdc> # e.g. 2000000
8453:
target_amount: <target_amount> # e.g. "1000000000"
min_allowed_amount: <min_allowed_amount> # e.g. "500000000"
max_rebalancing_gas_cost_uusdc: <max_rebalancing_gas_cost_uusdc> # e.g. 1000000
profitable_rebalance_timeout: <profitable_rebalance_timeout> # e.g. 1h
transfer_cost_cap_uusdc: <transfer_cost_cap_uusdc> # e.g. 2000000
10:
target_amount: <target_amount> # e.g. "1000000000"
min_allowed_amount: <min_allowed_amount> # e.g. "500000000"
max_rebalancing_gas_cost_uusdc: <max_rebalancing_gas_cost_uusdc> # e.g. 1000000
profitable_rebalance_timeout: <profitable_rebalance_timeout> # e.g. 1h
transfer_cost_cap_uusdc: <transfer_cost_cap_uusdc> # e.g. 2000000
osmosis-1:
target_amount: <target_amount> # e.g. "1000000000"
min_allowed_amount: <min_allowed_amount> # e.g. "500000000"
max_rebalancing_gas_cost_uusdc: <max_rebalancing_gas_cost_uusdc> # e.g. 1000000
profitable_rebalance_timeout: <profitable_rebalance_timeout> # e.g. 1h
transfer_cost_cap_uusdc: <transfer_cost_cap_uusdc> # e.g. 2000000
chains:
1:
chain_name: "ethereum"
chain_id: "1"
type: "evm"
environment: "mainnet"
gas_token_symbol: "ETH"
gas_token_decimals: 18
gas_token_coingecko_id: "ethereum"
hyperlane_domain: "1"
fast_transfer_contract_address: 0xe7935104c9670015b21c6300e5b95d2f75474cda
quick_start_num_blocks_back: 300000
num_block_confirmations_before_fill: <num_block_confirmations_before_fill> # e.g. 1
max_rebalancing_gas_cost_uusdc: "20000000"
solver_address: <solver_address> # e.g. "0x8EB49E3D65d74967CC0Fe987FA2d015ae816352E"
usdc_denom: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
#### SEE shared/config/config.go for guidance on how to set the below three values per chain ####
min_fee_bps: <min_fee_bps> # e.g. 100
batch_uusdc_settle_up_threshold: <batch_uusdc_settle_up_threshold> # e.g. 5000000
min_profit_margin_bps: <min_profit_margin_bps> # e.g. 50
evm:
rpc: <ethereum_rpc_server_url> # e.g. "https://eth.llamarpc.com"
rpc_basic_auth_var: <server_password>
signer_gas_balance:
warning_threshold_wei: <warning_threshold_wei> # e.g. 1720000000000000000
critical_threshold_wei: <critical_threshold_wei> # e.g. 580000000000000000
relayer:
mailbox_address: "0xc005dc82818d67AF737725bD4bf75435d065D239"
profitable_relay_timeout: <profitability_relay_timeout> # e.g. "5m"
relay_cost_cap_uusdc: <relay_cost_cap_uusdc> # e.g. "1000000" uusdc
43114:
chain_name: "avalanche"
chain_id: "43114"
type: "evm"
environment: "mainnet"
gas_token_symbol: "AVAX"
gas_token_decimals: 18
gas_token_coingecko_id: "avalanche-2"
num_block_confirmations_before_fill: <num_block_confirmations_before_fill> # e.g. 1
hyperlane_domain: "43114"
quick_start_num_blocks_back: <quick_start_num_blocks_back> # e.g. 1000
fast_transfer_contract_address: "0xD415B02A7E91dBAf92EAa4721F9289CFB7f4E1cF"
solver_address: <solver_address> # e.g. "0x8EB49E3D65d74967CC0Fe987FA2d015ae816352E"
usdc_denom: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"
#### SEE shared/config/config.go for guidance on how to set the below three values per chain ####
min_fee_bps: <min_fee_bps> # e.g. 100
batch_uusdc_settle_up_threshold: <batch_uusdc_settle_up_threshold> # e.g. 5000000
min_profit_margin_bps: <min_profit_margin_bps> # e.g. 50
evm:
rpc: <avalanche_rpc_server_url> # e.g. "https://api.avax.network/ext/bc/C/rpc"
rpc_basic_auth_var: <server_password>
signer_gas_balance:
warning_threshold_wei: <warning_threshold_wei> # e.g. 1720000000000000000
critical_threshold_wei: <critical_threshold_wei> # e.g. 580000000000000000
relayer:
mailbox_address: "0xFf06aFcaABaDDd1fb08371f9ccA15D73D51FeBD6"
profitable_relay_timeout: <profitability_relay_timeout> # e.g. "5m"
relay_cost_cap_uusdc: <relay_cost_cap_uusdc> # e.g. "1000000" uusdc
10:
chain_name: "optimism"
chain_id: "10"
type: "evm"
environment: "mainnet"
gas_token_symbol: "ETH"
gas_token_decimals: 18
gas_token_coingecko_id: "ethereum"
num_block_confirmations_before_fill: <num_block_confirmations_before_fill> # e.g. 1
hyperlane_domain: "10"
quick_start_num_blocks_back: <quick_start_num_blocks_back> # e.g. 1000
fast_transfer_contract_address: "0x0f479de4fd3144642f1af88e3797b1821724f703"
solver_address: <solver_address> # e.g. "0x8EB49E3D65d74967CC0Fe987FA2d015ae816352E"
usdc_denom: "0x0b2c639c533813f4aa9d7837caf62653d097ff85"
#### SEE shared/config/config.go for guidance on how to set the below three values per chain ####
min_fee_bps: <min_fee_bps> # e.g. 100
batch_uusdc_settle_up_threshold: <batch_uusdc_settle_up_threshold> # e.g. 5000000
min_profit_margin_bps: <min_profit_margin_bps> # e.g. 50
evm:
rpc: <optimism_rpc_server_url> # e.g. "https://mainnet.optimism.io"
rpc_basic_auth_var: <server_password>
signer_gas_balance:
warning_threshold_wei: <warning_threshold_wei> # e.g. 180000000000000000
critical_threshold_wei: <critical_threshold_wei> # e.g. 60000000000000000
relayer:
mailbox_address: "0xd4C1905BB1D26BC93DAC913e13CaCC278CdCC80D"
profitable_relay_timeout: <profitability_relay_timeout> # e.g. "5m"
relay_cost_cap_uusdc: <relay_cost_cap_uusdc> # e.g. "1000000" uusdc
42161:
chain_name: "arbitrum"
chain_id: "42161"
type: "evm"
environment: "mainnet"
gas_token_symbol: "ETH"
gas_token_decimals: 18
gas_token_coingecko_id: "etheruem"
num_block_confirmations_before_fill: <num_block_confirmations_before_fill> # e.g. 1
hyperlane_domain: "42161"
quick_start_num_blocks_back: <quick_start_num_blocks_back> # e.g. 1000
fast_transfer_contract_address: "0x23cb6147e5600c23d1fb5543916d3d5457c9b54c"
solver_address: <solver_address> # e.g. "0x8EB49E3D65d74967CC0Fe987FA2d015ae816352E"
usdc_denom: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
#### SEE shared/config/config.go for guidance on how to set the below three values per chain ####
min_fee_bps: <min_fee_bps> # e.g. 100
batch_uusdc_settle_up_threshold: <batch_uusdc_settle_up_threshold> # e.g. 5000000
min_profit_margin_bps: <min_profit_margin_bps> # e.g. 50
evm:
rpc: <arbitrum_rpc_server_url> # e.g. "https://arb1.arbitrum.io/rpc"
rpc_basic_auth_var: <server_password>
signer_gas_balance:
warning_threshold_wei: <warning_threshold_wei> # e.g. 180000000000000000
critical_threshold_wei: <critical_threshold_wei> # e.g. 60000000000000000
relayer:
mailbox_address: "0x979Ca5202784112f4738403dBec5D0F3B9daabB9"
profitable_relay_timeout: <profitability_relay_timeout> # e.g. "5m"
relay_cost_cap_uusdc: <relay_cost_cap_uusdc> # e.g. "1000000" uusdc
osmosis-1:
chain_name: "osmosis"
chain_id: "osmosis-1"
type: "cosmos"
environment: "mainnet"
gas_token_symbol: "OSMO"
gas_token_decimals: 6
gas_token_coingecko_id: "osmosis"
fast_transfer_contract_address: "osmo1vy34lpt5zlj797w7zqdta3qfq834kapx88qtgudy7jgljztj567s73ny82"
solver_address: <solver_address>
hyperlane_domain: "875"
num_block_confirmations_before_fill: <num_block_confirmations_before_fill> # e.g. 1
usdc_denom: "ibc/498A0751C798A0D9A389AA3691123DADA57DAA4FE165D5C75894505B876BA6E4"
cosmos:
address_prefix: "osmo"
rpc: <osmosis_rpc_server_url> # e.g. "https://rpc.osmosis.zone"
rpc_basic_auth_var: <server_password>
grpc: <osmosis_grpc_server_url> # e.g. "grpc.osmosis.zone:9090"
grpc_tls_enabled: <grpc_tls_enabled> # e.g. false
min_fill_size: <min_fill_size> # e.g. 5000000
max_fill_size: <max_fill_size> # e.g. 10000000000
signer_gas_balance:
warning_threshold_wei: <warning_threshold_wei> # e.g. 42860000
critical_threshold_wei: <critical_threshold_wei> # e.g. 14290000
gas_price: 0.0025
gas_denom: "uosmo"
relayer:
validator_announce_contract_address: "osmo147r8mfdsngswujgkr4tln9rhcrzz6yq0xn448ksd96mlcmp9wg6stvznke"
merkle_hook_contract_address: "osmo1e765uc5mctl7rz8dzl9decl5ghgxggeqyxutkjp2xkggrg6zma3qgdq2g4"
mailbox_address: "osmo1r6u37zv47ke4d2k9tkzun72ch466w6594kv8gqgrtmsvf7qxpm9sj95v98"
profitable_relay_timeout: <profitability_relay_timeout> # e.g. "5m"
relay_cost_cap_uusdc: <relay_cost_cap_uusdc> # e.g. "1000000" uusdc
8453:
chain_name: "base"
chain_id: "8453"
type: "evm"
environment: "mainnet"
gas_token_symbol: "ETH"
gas_token_decimals: 18
gas_token_coingecko_id: "ethereum"
num_block_confirmations_before_fill: <num_block_confirmations_before_fill> # e.g. 1
hyperlane_domain: "8453"
quick_start_num_blocks_back: <quick_start_num_blocks_back> # e.g. 1000
fast_transfer_contract_address: "0x43d090025aaa6c8693b71952b910ac55ccb56bbb"
solver_address: <solver_address> # e.g. "0x8EB49E3D65d74967CC0Fe987FA2d015ae816352E"
usdc_denom: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
#### SEE shared/config/config.go for guidance on how to set the below three values per chain ####
min_fee_bps: <min_fee_bps> # e.g. 100
batch_uusdc_settle_up_threshold: <batch_uusdc_settle_up_threshold> # e.g. 5000000
min_profit_margin_bps: <min_profit_margin_bps> # e.g. 50
evm:
rpc: <base_mainnet_rpc_server_url> # e.g. "https://mainnet.base.org"
rpc_basic_auth_var: <server_password>
signer_gas_balance:
warning_threshold_wei: <warning_threshold_wei> # e.g. 180000000000000000
critical_threshold_wei: <critical_threshold_wei> # e.g. 60000000000000000
relayer:
mailbox_address: "0xeA87ae93Fa0019a82A727bfd3eBd1cFCa8f64f1D"
profitable_relay_timeout: <profitability_relay_timeout> # e.g. "5m"
relay_cost_cap_uusdc: <relay_cost_cap_uusdc> # e.g. "1000000" uusdc
137:
chain_name: "polygon"
chain_id: "137"
type: "evm"
environment: "mainnet"
gas_token_symbol: "MATIC"
gas_token_decimals: 18
gas_token_coingecko_id: "matic-network"
num_block_confirmations_before_fill: <num_block_confirmations_before_fill> # e.g. 1
hyperlane_domain: "137"
quick_start_num_blocks_back: <quick_start_num_blocks_back> # e.g. 1000
fast_transfer_contract_address: "0x3ffaf8d0d33226302e3a0ae48367cf1dd2023b1f"
solver_address: <solver_address> # e.g. "0x8EB49E3D65d74967CC0Fe987FA2d015ae816352E"
usdc_denom: "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359"
#### SEE shared/config/config.go for guidance on how to set the below three values per chain ####
min_fee_bps: <min_fee_bps> # e.g. 100
batch_uusdc_settle_up_threshold: <batch_uusdc_settle_up_threshold> # e.g. 5000000
min_profit_margin_bps: <min_profit_margin_bps> # e.g. 50
evm:
rpc: <polygon_mainnet_rpc_server_url> # e.g. "https://polygon-rpc.com"
rpc_basic_auth_var: <server_password>
signer_gas_balance:
warning_threshold_wei: <warning_threshold_wei> # e.g. 15000000000000000000
critical_threshold_wei: <critical_threshold_wei> # e.g. 5000000000000000000
relayer:
mailbox_address: "0x5d934f4e2f797775e53561bB72aca21ba36B96BB"
profitable_relay_timeout: <profitability_relay_timeout> # e.g. "5m"
relay_cost_cap_uusdc: <relay_cost_cap_uusdc> # e.g. "1000000" uusdc