- Add
const rawApiKeys = parseJsonEnv<unknown>('API_KEYS', '[]');before its usage inloadConfig() - File:
listener/src/config.ts
- Use the standalone
isRateLimitExempt()function instead of the incomplete inline check - File:
listener/src/api/events-server.ts
- Remove the first (redundant)
const contractStatusesblock, keep the second - File:
listener/src/api/events-server.ts
- Run
npm run typecheckto verify TypeScript compilation - Run
npm test -- rate-limiterto verify tests pass