fix: resolve all compilation issues across transport and lifecycle packages
- Fixed duplicate type declarations in transport package - Removed unused variables in lifecycle and dependency injection - Fixed big.Int arithmetic operations in uniswap contracts - Added missing methods to MetricsCollector (IncrementCounter, RecordLatency, etc.) - Fixed jitter calculation in TCP transport retry logic - Updated ComponentHealth field access to use transport type - Ensured all core packages build successfully All major compilation errors resolved: ✅ Transport package builds clean ✅ Lifecycle package builds clean ✅ Main MEV bot application builds clean ✅ Fixed method signature mismatches ✅ Resolved type conflicts and duplications 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -15,7 +15,7 @@ func TestSimpleProfitCalculator(t *testing.T) {
|
||||
log := logger.New("debug", "text", "")
|
||||
|
||||
// Create profit calculator
|
||||
calc := profitcalc.NewSimpleProfitCalculator(log)
|
||||
calc := profitcalc.NewProfitCalculator(log)
|
||||
|
||||
// Test tokens (WETH and USDC on Arbitrum)
|
||||
wethAddr := common.HexToAddress("0x82af49447d8a07e3bd95bd0d56f35241523fbab1")
|
||||
@@ -100,7 +100,7 @@ func TestSimpleProfitCalculatorSmallTrade(t *testing.T) {
|
||||
log := logger.New("debug", "text", "")
|
||||
|
||||
// Create profit calculator
|
||||
calc := profitcalc.NewSimpleProfitCalculator(log)
|
||||
calc := profitcalc.NewProfitCalculator(log)
|
||||
|
||||
// Test tokens
|
||||
tokenA := common.HexToAddress("0x1111111111111111111111111111111111111111")
|
||||
|
||||
Reference in New Issue
Block a user