Run the Ethereum API facade.
(settings: EthSettings, client: HybridClient)
| 33 | |
| 34 | /// Run the Ethereum API facade. |
| 35 | async fn run(settings: EthSettings, client: HybridClient) -> anyhow::Result<()> { |
| 36 | let gas = fendermint_eth_api::GasOpt { |
| 37 | min_gas_premium: settings.gas.min_gas_premium, |
| 38 | num_blocks_max_prio_fee: settings.gas.num_blocks_max_prio_fee, |
| 39 | max_fee_hist_size: settings.gas.max_fee_hist_size, |
| 40 | }; |
| 41 | fendermint_eth_api::listen( |
| 42 | settings.listen, |
| 43 | client, |
| 44 | settings.filter_timeout, |
| 45 | settings.cache_capacity, |
| 46 | settings.max_nonce_gap, |
| 47 | gas, |
| 48 | ) |
| 49 | .await |
| 50 | } |