MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / run

Function run

fendermint/app/src/cmd/eth.rs:35–50  ·  view source on GitHub ↗

Run the Ethereum API facade.

(settings: EthSettings, client: HybridClient)

Source from the content-addressed store, hash-verified

33
34/// Run the Ethereum API facade.
35async 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}

Callers

nothing calls this directly

Calls 1

listenFunction · 0.85

Tested by

no test coverage detected