Utility functions to parse transactions as fundings.
We have utility function to parse a transaction as a settlement transaction, but we should add the equivalent function for fundings. It should take a full contractData structure (so with fees).
Similar code already exist in the SS, and need for the code exist in LP, so this is an opportunity for better code sharing.