MCPcopy Create free account
hub / github.com/cowprotocol/services / tenderly

Method tenderly

crates/simulator/src/lib.rs:34–51  ·  view source on GitHub ↗
(
        config: &configs::simulator::TenderlyConfig,
        eth: Ethereum,
        http_factory: &HttpClientFactory,
    )

Source from the content-addressed store, hash-verified

32
33impl Simulator {
34 pub fn tenderly(
35 config: &configs::simulator::TenderlyConfig,
36 eth: Ethereum,
37 http_factory: &HttpClientFactory,
38 ) -> Self {
39 let eth = eth.with_metric_label("tenderlySimulator".into());
40 Self {
41 inner: Inner::Tenderly(Box::new(tenderly::Tenderly::new(
42 config,
43 eth.clone(),
44 http_factory,
45 ))),
46 eth,
47 disable_access_lists: false,
48 disable_gas: None,
49 simulation_overrides: None,
50 }
51 }
52
53 pub fn ethereum(eth: Ethereum) -> Self {
54 let eth = eth.with_metric_label("web3Simulator".into());

Callers 1

analyze_simulationFunction · 0.45

Calls 5

TenderlyClass · 0.85
newFunction · 0.50
with_metric_labelMethod · 0.45
intoMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected