- Change transaction type to an enum for elegant parsing of data (issue #269).