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
| async function main(stream) { | |
| const LIST_NAME = "wallets"; | |
| const TRANSFER_TOPIC = | |
| "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"; | |
| // --- helpers --- | |
| const toArray = (x) => (Array.isArray(x) ? x : []); | |
| const lower = (s) => (typeof s === "string" ? s.toLowerCase() : null); | |
| const normalizeAddr = (s) => (s ? lower(s) : null); | |
| const topicToAddr = (topic) => { |