τῑμᾶσθαι is not middle, but passive: "Socrates to be honored."
οἷα is the equivalent of ὡς, and links Socrates with the aorist participle ἐκδιδάξαντα: "as having taught ..." And πολίτᾱς is a direct object of ἐκδιδάξαντα.
The present participle ποιοῦντα, like ἐκδιδάξαντα, is masculine singular accusative to modify Σωκράτη, while the adjective εὐδαίμονα is feminine singular accusative to modify πόλιν: "making the city truly (ἀληθῶς) happy."
Now give it a try!