WIP: transaction history
WIP: refactor tests
refactor and add tests
added sort type for transaction ids