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

Method new

crates/execution/rpc/src/debug.rs:88–104  ·  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

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

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected