Creates a new instance of the `DebugApiExt`.
(
provider: Provider,
eth_api: Eth,
preimage_store: BaseProofsStorage<Storage>,
task_spawner: Runtime,
evm_config: EvmConfig,
)
| 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)] |