{"id":29175824,"url":"https://github.com/iqaicom/aiden-bridge-agent","last_synced_at":"2025-07-01T16:11:30.654Z","repository":{"id":301367999,"uuid":"996635656","full_name":"IQAIcom/aiden-bridge-agent","owner":"IQAIcom","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-26T13:24:32.000Z","size":253,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-26T14:28:57.392Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IQAIcom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-05T08:31:17.000Z","updated_at":"2025-06-10T06:37:45.000Z","dependencies_parsed_at":"2025-06-26T14:40:55.224Z","dependency_job_id":null,"html_url":"https://github.com/IQAIcom/aiden-bridge-agent","commit_stats":null,"previous_names":["iqaicom/aiden-bridge-agent"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/IQAIcom/aiden-bridge-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IQAIcom%2Faiden-bridge-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IQAIcom%2Faiden-bridge-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IQAIcom%2Faiden-bridge-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IQAIcom%2Faiden-bridge-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IQAIcom","download_url":"https://codeload.github.com/IQAIcom/aiden-bridge-agent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IQAIcom%2Faiden-bridge-agent/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262996686,"owners_count":23396909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-01T16:11:29.356Z","updated_at":"2025-07-01T16:11:30.640Z","avatar_url":"https://github.com/IQAIcom.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌉 Aiden Bridge Agent\n\nAn intelligent agent that monitors token bridge transactions and automatically funds user wallets on Fraxtal L2. Built with the `@iqai/adk` library and integrated with Telegram notifications.\n\n## 🚀 Features\n\n- **Real-time Bridge Monitoring**: Watches Ethereum mainnet for ERC20 token bridge events\n- **Automatic Funding**: Funds user wallets on Fraxtal L2 when they bridge any ERC20 tokens\n- **Telegram Integration**: Sends notifications about bridge events and funding activities\n- **Universal Token Support**: Processes bridges for any ERC20 token\n- **Retry Logic**: Robust error handling with automatic retries\n\n## 🚀 Get Started\n\n### Prerequisites\n- Node.js 18+\n- PNPM package manager\n- Ethereum RPC endpoint\n- Fraxtal RPC endpoint\n- Telegram bot token (optional)\n\n### Installation\n\n```bash\ngit clone https://github.com/IQAICOM/aiden-bridge-agent.git\ncd aiden-bridge-agent\n```\n\n```bash\npnpm install\n```\n\n### Environment Setup\n\n```bash\ncp .env.example .env\n```\n\n### Run the Agent\n\n```bash\npnpm dev\n```\n\n## 🔄 How It Works\n\n1. **Event Monitoring**: The agent watches the bridge contract on Ethereum for `ERC20BridgeInitiated` events\n2. **Universal Processing**: Processes bridge events for any ERC20 token\n3. **Balance Check**: Checks if the recipient has sufficient FRAX on Fraxtal L2\n4. **Auto Funding**: Sends FRAX to users who need it for transaction fees\n5. **Notifications**: Sends updates via Telegram about bridge events and funding activities\n\n## 📊 Event Flow\n\n```mermaid\ngraph TD\n    A[User bridges ERC20 tokens] --\u003e B[Event detected on Ethereum]\n    B --\u003e C[Check Fraxtal balance]\n    C --\u003e D{Balance \u003c 0.01 FRAX?}\n    D --\u003e|No| E[No funding needed]\n    D --\u003e|Yes| F[Send FRAX to user]\n    F --\u003e G[Send Telegram notification]\n    E --\u003e G\n```\n\n## 🤖 Telegram Integration\n\nThe agent uses a Telegram agent to send notifications about:\n- Bridge events detected\n- Funding transactions completed\n- Funding skipped (sufficient balance)\n\nMessages are automatically formatted and sent to your configured Telegram chat.\n\n## 🛠️ Development\n\n### Project Structure\n- **Services**: Core business logic separated by responsibility\n- **Agents**: AI agents for external integrations (Telegram)\n- **Events**: Internal event system for loose coupling\n- **Constants**: Centralized configuration\n\n## 🚨 Error Handling\n\n- **Retry Logic**: Failed transactions are retried up to 3 times\n- **Balance Checks**: Prevents funding when funder wallet is low\n- **Event Filtering**: Robust filtering prevents processing irrelevant events\n- **Graceful Degradation**: Continues monitoring even if individual transactions fail\n\n## 📄 License\n\nMIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiqaicom%2Faiden-bridge-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiqaicom%2Faiden-bridge-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiqaicom%2Faiden-bridge-agent/lists"}