Sony have confirmed that both trophies gain and any wallet funds before the outage have not been affected by the recent hack.
Answering a users question on the EU PS Blog, James Gallagher, SCEE said:
When PSN is restored, friends lists, trophies and wallet funds will all be exactly as they were before.
This is obviously great news as some people seemed more concerned about this than their personal details going missing.
We will keep you updated on any other developments.