HomePhabricator

[token-server] Link token blacklist with icon approval actions

Description

[token-server] Link token blacklist with icon approval actions

Summary:
Add unit-tested functions for adding or removing an entry from the blacklist.

Update the telegram bot callback function to add tokenId to blacklist when icon is removed, and remove from blacklist when icon is restored. Add log statements to confirm.

Test Plan:
npm test

The telegram bot is impractical to test. The change is imo simple enough to "see if it works", given we are only adding tested functions. There's a chance the telegram API does not like that I made the callback async or some other issue. Will revert in this case.

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Subscribers: emack

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

Details

Provenance
bytesofmanAuthored on Oct 29 2024, 21:25
bytesofmanPushed on Oct 30 2024, 11:54
Reviewer
Restricted Project
Differential Revision
D17041: [token-server] Link token blacklist with icon approval actions
Parents
rABC6fccffff629a: [herald] Always print the staking reward winner for invalidated blocks
Branches
Unknown
Tags
Unknown