Files
mev-beta/orig/.qwen/commands/implement-algorithm.toml
Administrator c54c569f30 refactor: move all remaining files to orig/ directory
Completed clean root directory structure:
- Root now contains only: .git, .env, docs/, orig/
- Moved all remaining files and directories to orig/:
  - Config files (.claude, .dockerignore, .drone.yml, etc.)
  - All .env variants (except active .env)
  - Git config (.gitconfig, .github, .gitignore, etc.)
  - Tool configs (.golangci.yml, .revive.toml, etc.)
  - Documentation (*.md files, @prompts)
  - Build files (Dockerfiles, Makefile, go.mod, go.sum)
  - Docker compose files
  - All source directories (scripts, tests, tools, etc.)
  - Runtime directories (logs, monitoring, reports)
  - Dependency files (node_modules, lib, cache)
  - Special files (--delete)

- Removed empty runtime directories (bin/, data/)

V2 structure is now clean:
- docs/planning/ - V2 planning documents
- orig/ - Complete V1 codebase preserved
- .env - Active environment config (not in git)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-10 10:53:05 +01:00

1 line
2.2 KiB
TOML

name = \"implement-algorithm\"\ndescription = \"Implement Mathematical Algorithm - Implement the following mathematical algorithm for the MEV bot\"\ncategory = \"implementation\"\nparameters = [\n { name = \"algorithm\", type = \"string\", description = \"The mathematical algorithm to implement\" }\n]\n\n[command]\nshell = '''\necho \"# Implement Mathematical Algorithm\n\nImplement the following mathematical algorithm for the MEV bot: ${algorithm}\n\n## Implementation Framework:\n1. **Requirements Analysis**: Break down the mathematical requirements and precision needs\n2. **Formula Implementation**: Convert mathematical formulas to precise Go code\n3. **Precision Handling**: Use appropriate data types (uint256, big.Int) for calculations\n4. **Edge Case Handling**: Consider boundary conditions and error scenarios\n5. **Testing**: Create comprehensive tests including property-based tests\n6. **Optimization**: Optimize for performance while maintaining precision\n\n## Implementation Standards:\n- **Numerical Precision**: Use github.com/holiman/uint256 for precise uint256 arithmetic\n- **Error Handling**: Implement robust error handling with clear error messages\n- **Documentation**: Document all mathematical formulas and implementation decisions\n- **Testing**: Achieve >95% test coverage with property-based tests for mathematical functions\n- **Performance**: Consider performance implications and benchmark critical paths\n\n## File Organization:\n- **Core Logic**: Place in appropriate \\`pkg/uniswap/\\` or \\`pkg/math/\\` subdirectory\n- **Tests**: Co-locate with source files (\\`*_test.go\\`)\n- **Documentation**: Inline comments explaining mathematical formulas\n\n## Integration Points:\n- **Uniswap Pricing**: Integrate with \\`pkg/uniswap/\\` for pricing calculations\n- **Market Analysis**: Connect to \\`pkg/market/\\` for market data processing\n- **Precision Libraries**: Use \\`github.com/holiman/uint256\\` for uint256 arithmetic\n\n## Deliverables:\n- Working implementation with comprehensive tests\n- Documentation of mathematical formulas and implementation approach\n- Performance benchmarks for critical functions\n- Edge case handling and error scenarios\"\n'''\n