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