MCPcopy Create free account
hub / github.com/base/base / new

Method new

crates/execution/rpc/src/debug.rs:94–110  ·  view source on GitHub ↗

Creates a new instance of the `DebugApiExt`.

(
        provider: Provider,
        eth_api: Eth,
        preimage_store: BaseProofsStorage<Storage>,
        task_spawner: Runtime,
        evm_config: EvmConfig,
    )

Source from the content-addressed store, hash-verified

92{
93 /// Creates a new instance of the `DebugApiExt`.
94 pub fn new(
95 provider: Provider,
96 eth_api: Eth,
97 preimage_store: BaseProofsStorage<Storage>,
98 task_spawner: Runtime,
99 evm_config: EvmConfig,
100 ) -> Self {
101 Self {
102 inner: Arc::new(DebugApiExtInner::new(
103 provider,
104 eth_api,
105 preimage_store,
106 task_spawner,
107 evm_config,
108 )),
109 }
110 }
111}
112
113#[derive(Debug)]

Callers

nothing calls this directly

Calls 2

newFunction · 0.50
cloneMethod · 0.45

Tested by

no test coverage detected