HomePhabricator

[Cashtab] Do not airdrop XEC to agora scripts

Description

[Cashtab] Do not airdrop XEC to agora scripts

Summary:
The "holders" of the token qty offered in an Agora offer are the p2pkh addresses of the creating pk.

Make sure the airdrop function takes this into account. Otherwise we will airdrop XEC to Agora scripts.

We convert airdrop functions and tests to typescript to support this.

We also clean up the airdrop calculation functions. Behavior confirmed with existing tests.

Test Plan: npm test

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Subscribers: emack

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

Details

Provenance
bytesofmanAuthored on Mon, Dec 16, 00:09
bytesofmanPushed on Fri, Dec 20, 12:05
Reviewer
Restricted Project
Differential Revision
D17357: [Cashtab] Do not airdrop XEC to agora scripts
Parents
rABC23f8e87875f8: [mock-chronik-client] Cache bust dockerfile deployment
Branches
Unknown
Tags
Unknown