HomePhabricator

[Cashtab] [chronik utxo handling p11] chronik token burns

Description

[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

  1. 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.
  2. The burnToken function has the same change issue that was resolved in D11926. Patched.
  3. 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

Details

Provenance
bytesofmanAuthored on Sep 13 2022, 23:40
bytesofmanPushed on Sep 20 2022, 15:27
Reviewer
Restricted Project
Differential Revision
D11979: [Cashtab] [chronik utxo handling p11] chronik token burns
Parents
rABC969bd16bcce7: [Cashtab] [chronik utxo handling p10] chronik token minting
Branches
Unknown
Tags
Unknown