HomePhabricator

[Cashtab] [airdrop chronik for mint address p1] Get minting address with…

Description

[Cashtab] [airdrop chronik for mint address p1] Get minting address with chronik and compare to bch-api result

Summary:
T2730

This is part 1 of a stacked diff to remove a bch-api call from Airdrop.js

In this part, chronik is used to calculate the same information (i.e. the minting address). A console.log statement confirms that both methods get the same result.

The rest of this stack will deprecate the bch-api approach and remove debug logging.

Test Plan:
npm start
Create an aidrop tx and hit the switch for 'Ignore eToken minter address', hit 'Calculate Airdrop' button
Observe the dev console for Chronik and bch-api got the same minting address statement
Confirm you get the same result for a handful of different token ids

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Subscribers: emack

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

Details

Provenance
bytesofmanAuthored on Oct 25 2022, 17:35
bytesofmanPushed on Oct 27 2022, 16:31
Reviewer
Restricted Project
Differential Revision
D12367: [Cashtab] [airdrop chronik for mint address p1] Get minting address with chronik and compare to bch-api result
Parents
rABC02ff17669633: [Cashtab] [p3 remove BCH.getByteCount] Move calcFee to cashMethods
Branches
Unknown
Tags
Unknown