How to listen for and parse smart contract events using wagmi v3