A high-performance system for monitoring Uniswap V2/V3 liquidity pool deployments with sophisticated security validation and event processing capabilities.
- Real-time monitoring of Uniswap V2 and V3 pool creation events across multiple networks
- Advanced token security validation using GoPlus API
- Sophisticated event buffering with backpressure handling (1000+ events/second)
- Thread-safe caching system with weak references for optimal memory management
- Exponential backoff retry mechanism for robust error handling
- Multi-chain support (Ethereum, Arbitrum, Optimism, Polygon)
- Production-grade logging and monitoring
- Rate limiting with token bucket algorithm
- Concurrent validation of contract interfaces
- Ethereum Mainnet
- Goerli Testnet
- Arbitrum
- Optimism
- Polygon
- Asynchronous WebSocket connections with connection pooling
- Memory-efficient event processing with backpressure handling
- Advanced caching system with TTL and size management
- Metaclass-based contract validation
- Generic type hints for type safety
- Comprehensive error handling and logging
- Configurable clean mode for production integration
- Create a QuickNode account and endpoint
- Copy your QuickNode WSS Provider link into the config.py file
- Install dependencies:
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate pip install -r requirements.txt
- Configure network and mode settings in config.py
- Run the monitoring system:
python main.py
Output of the program is sent to std::out in JSON format. For integration with trading applications, set CLEAN_MODE = True in config.py, this will ensure that no empty messages or heartbeats are ever sent, and the only output will be the hash values of secure and approved tokens of newly created liquidity pools.
- Memory Management: The system uses weak references and automatic garbage collection
- Rate Limiting: Configurable rate limits with exponential backoff
- Event Buffering: Sophisticated event queue with backpressure handling
- Contract Validation: Automatic validation of contract interfaces
- Multi-Network Support: Easy configuration for different networks
- Concurrent contract validation
- Efficient memory usage with weak references
- Automatic garbage collection
- Rate limiting with token bucket algorithm
- Event buffering with backpressure
- Connection pooling for WebSocket connections
Note that Github is currently experiencing bugs with users trying to access .pdf files embedded in repositories on Safari. If you wish to view the technical paper, please use an alternative browser such as Chrome.
View Hex-Flow Oracle Technical Paper
- Asynchronous event processing using Python's asyncio
- Thread-safe caching mechanisms
- Advanced error handling with retry logic
- Comprehensive logging system
- Type-safe implementations
- Memory-efficient data structures
- Token security validation
- Contract interface verification
- Rate limiting protection
- Error handling and logging
- Clean mode for production use
Please ensure all tests pass and add appropriate documentation for any new features.