Open
Description
Looking at the javascript tests for CPI events, it seems that what has been done is that txHash has been used to fetch and decode after making transactions to test the decoding of self-CPI events.
I think it makes sense to add an abstraction like addEventListener for normal program log events to make listening to off-chain events in typescript listeners easier.