How do I decode contract data in Javascript?

I am trying to index all the contract calls and oracle calls, for this I believe I need to decode the contracts and oracle calls, how can I do this from the aepp sdk js?