End to end updates to tx history logic to enable the parsing of OP_RETURN outputs and render them as part of the Transaction History tab.
- Updated useBCH.js's parseTxData function to extract the asm value from the getTxData JSON response, which is then parsed to determine whether it is an eToken tx with OP_RETURN outputs or a genuine OP_RETURN message encoded output
- The message content is then decoded into text and returned as part of parseTxData() back all the way up to Tx.js, which conditionally renders the message if it exists
- Updated mockParsedTxs.js and mockTxDataWithPassthrough.js to incorporate the new opReturnMessage parameter that is now being returned from parseTxData() in useBCH.js, as well as new message-centric mocks
- Need further discussion with @bytesofman on how best to guard against OP_RETURN outputs generated by custom nodejs scripts as they wouldn't be going through the front and backend validtion logic in Cashtab which may cause cashtab to crash if getTxData() returns an unexpected JSON response.
Deployment Order
- Propagate T1920's null utxo fix to extension plugin
- Land D10363
- Then land this Diff