HomePhabricator

[Cashtab] [BCH deprecation] Pt 1/2 - Implement local generateBurnOpReturn…

Description

[Cashtab] [BCH deprecation] Pt 1/2 - Implement local generateBurnOpReturn function

Summary:
T2730

This diff adds in-app logic to generate the burn OP_RETURN script.

Test Plan:
npm test and ensure unit test passes
npm start
burn an existing and new token and ensure console displays the 'BCH-JS burn script matches the local burn script' statement
burn a full token balance and ensure the same console log is displayed and verify explorer shows no token change in output

Reviewers: bytesofman, #bitcoin_abc

Reviewed By: bytesofman, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D12413

Details

Provenance
emackAuthored on Nov 2 2022, 03:53
emackPushed on Nov 6 2022, 11:06
Reviewer
Restricted Project
Differential Revision
D12413: [Cashtab] [BCH deprecation] Pt 1/2 - Implement local generateBurnOpReturn function
Parents
rABC54593493d071: [Cashtab] [BCH deprecation] Pt 2/2 - Deprecate BCH.SLP.TokenType1.
Branches
Unknown
Tags
Unknown