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:
Krypto Kajun
2025-09-19 17:23:14 -05:00
parent 0680ac458a
commit 3f69aeafcf
71 changed files with 26755 additions and 421 deletions

View File

@@ -43,7 +43,7 @@ func TestMain(m *testing.M) {
os.Exit(code)
}
func setupTestEnvironment(t *testing.T) (*arbitrage.SimpleArbitrageService, func()) {
func setupTestEnvironment(t *testing.T) (*arbitrage.ArbitrageService, func()) {
// Create test logger
log := logger.New("debug", "text", "")
@@ -86,7 +86,7 @@ func setupTestEnvironment(t *testing.T) (*arbitrage.SimpleArbitrageService, func
require.NoError(t, err, "Failed to create test database")
// Create arbitrage service
service, err := arbitrage.NewSimpleArbitrageService(
service, err := arbitrage.NewArbitrageService(
client,
log,
cfg,