Heat oil in a pan, add onions, season with salt and add in turmeric powder. Mix well. Cover and cook this for 5 to 6 mins on low medium heat till the onions is wilted.
Now add in ginger garlic paste, curry leaves and green chillies and mix well.
Add in tomatoes and mix well. Cook for 5 mins or so.
Add in all spice powders and saute well.
Bring the masala to one side and add in eggs to one side and let it toast in the pan for few mins. Now mix with the masala.