pub fn new(
        diamond_proxy_address: Address,
        expected_mode: L1BatchCommitmentMode,
        eth_client: Box<dyn EthInterface>,
    ) -> Self {
        Self {
            diamond_proxy_address,
            expected_mode,
            eth_client,
            retry_interval: Self::DEFAULT_RETRY_INTERVAL,
            exit_on_success: false,
        }
    }
Creates a new task with the specified params and Ethereum client.
core/node/commitment_generator/src/validation_task.rs