paratii-player
paratii-player copied to clipboard
Show transaction history better
The Transactions colleciton in meteor adds a record for each Logged event.
I.e. a "buyVideo" is a single transaction that logs 3 separate events:
- BuyVideo - logs the videoId and price of the video
- Transfer - logs the transfer of PTI from the buyers account to the owner of the video
- Transfer - logs the transfer of PTI from the buyers account to the distribution pool
At the moment, we are showing: each line in the history in the app corresponds to 1 transaction, and we are just piling up the info from the different events that are logged for each transaction
We (probably) just want to show the info of the first event, in this case.