Page MenuHomePhabricator

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

Authored by bytesofman on Tue, Oct 29, 21:27.

Details

Reviewers
None
Group Reviewers
Restricted Project
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.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
blacklist-tg-update
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 30911
Build 61325: Build Difftoken-server-tests
Build 61324: arc lint + arc unit