[Cashtab] [chronik utxo handling p11] chronik token burns
Summary:
T2447
Depends on D11978
Support for token burn transactions with chronik utxo format
A number of issues had to be resolved for this to work. Potentially could have stacked into more diffs, however these issues were discovered incrementally, and this diff implements only the changes necessary for token burn txs to work.
Issues resolved
- BCH.SLP.TokenType1.generateBurnOpReturn requires token utxo inputs to have a certain format. The new finalizeSlpUtxos function was created to match this format. Tasks were also opened in phab to correct this software package issue.
- The burnToken function has the same change issue that was resolved in D11926. Patched.
- Formatting issues for finding the correct info in a chronik utxo vs bch-api utxo
Test Plan:
Review the code changes and unit tests.
npm start
Do a few token burn transactions + review at block explorer to confirm correct fee, change, inputs and outputs
Reviewers: #bitcoin_abc, emack
Reviewed By: #bitcoin_abc, emack
Subscribers: emack
Differential Revision: https://reviews.bitcoinabc.org/D11979