1.6 KiB
1.6 KiB
Implement Feature
Implement the following feature for the MEV bot: $ARGUMENTS
Implementation Framework:
- Requirements Analysis: Break down the feature requirements and acceptance criteria
- Architecture Design: Design the solution following existing patterns
- Interface Design: Define clean interfaces between components
- Implementation: Write the code following Go best practices
- Testing: Create comprehensive unit and integration tests
- Documentation: Update relevant documentation and examples
Implementation Standards:
- Code Quality: Follow Go conventions and project coding standards
- Error Handling: Implement robust error handling with context
- Logging: Add appropriate logging with structured fields
- Testing: Achieve >90% test coverage
- Performance: Consider performance implications and add metrics
- Security: Validate all inputs and handle edge cases
File Organization:
- Core Logic: Place in appropriate
pkg/subdirectory - Configuration: Add to
internal/config/if needed - Tests: Co-locate with source files (
*_test.go) - Documentation: Update
docs/and inline comments
Integration Points:
- Event System: Integrate with
pkg/events/for transaction processing - Market Pipeline: Connect to
pkg/market/pipeline.gofor processing - Monitoring: Add metrics and health checks
- Configuration: Add necessary environment variables
Deliverables:
- Working implementation with tests
- Updated documentation
- Configuration updates
- Performance benchmarks if applicable
- Migration guide for existing deployments