This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| /** | |
| * USDC Blacklist Verifier | |
| * | |
| * 1. Uses eth_getLogs to fetch the FULL history of Blacklisted(address) and | |
| * UnBlacklisted(address) events from the USDC contract — no pagination limit. | |
| * 2. Builds the current expected state from events alone (net blacklisted). | |
| * 3. Calls isBlacklisted(address) on-chain for every address to confirm current state. | |
| * 4. Flags any mismatches and addresses that were reversed (UnBlacklisted). |
OlderNewer