legion icon indicating copy to clipboard operation
legion copied to clipboard

I've refactored the application to support local execution with a SQL…

Open 1caiji23 opened this issue 4 months ago • 2 comments

…ite database. I also removed the Telegram integration, replacing it with a database-based notification system, and switched the LLM provider to Moonshot.

Here are the main changes:

  • Database: The database backend has been updated to support both PostgreSQL and SQLite. The default configuration is now set to use a local SQLite database.
  • Configuration: The configuration has been simplified and adapted for local execution. The config.yml file is now used to store local settings, including the LLM API key.
  • LLM: The LLM service has been updated to use the Moonshot API, with the model and API key configurable in config.yml.
  • Telegram Removal: The Telegram notification service has been completely removed and replaced with a DatabaseNotificationService that writes notifications to a new notifications table in the database.
  • Manual Bounty Input: The Immunefi indexer has been modified to read bounty information from a local bounties.json file, allowing for manual input.
  • Error Handling: The application has been made more resilient to missing block explorer API keys and other environment-specific issues.
  • Dependencies: The requirements.txt file has been updated to remove PostgreSQL and Telegram-specific dependencies and add aiosqlite.

1caiji23 avatar Aug 08 '25 01:08 1caiji23

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Aug 08 '25 01:08 CLAassistant

Hey thanks for the PR! Those are some big changes packed into a single PR. Would you mind splitting those changes up into 7 separate PRs, one for each feature? Then I'll review them one-by-one.

Also, please make sure to sign the Contributor License Agreement.

muellerberndt avatar Aug 08 '25 19:08 muellerberndt