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:
16
Makefile
16
Makefile
@@ -25,6 +25,14 @@ build-mm:
|
||||
@go build -o bin/marketmanager-example examples/marketmanager/main.go
|
||||
@echo "Market manager example built successfully!"
|
||||
|
||||
# Build swap CLI tool
|
||||
.PHONY: build-swap-cli
|
||||
build-swap-cli:
|
||||
@echo "Building swap CLI tool..."
|
||||
@mkdir -p bin
|
||||
@go build -o bin/swap-cli cmd/swap-cli/main.go
|
||||
@echo "Swap CLI tool built successfully!"
|
||||
|
||||
# Run the application
|
||||
.PHONY: run
|
||||
run: build
|
||||
@@ -37,6 +45,12 @@ run-mm: build-mm
|
||||
@echo "Running market manager example..."
|
||||
@bin/marketmanager-example
|
||||
|
||||
# Run swap CLI tool
|
||||
.PHONY: run-swap-cli
|
||||
run-swap-cli: build-swap-cli
|
||||
@echo "Running swap CLI tool..."
|
||||
@bin/swap-cli
|
||||
|
||||
# Run tests
|
||||
.PHONY: test
|
||||
test:
|
||||
@@ -146,8 +160,10 @@ help:
|
||||
@echo " all - Build the application (default)"
|
||||
@echo " build - Build the application"
|
||||
@echo " build-mm - Build market manager example"
|
||||
@echo " build-swap-cli - Build swap CLI tool"
|
||||
@echo " run - Build and run the application"
|
||||
@echo " run-mm - Build and run market manager example"
|
||||
@echo " run-swap-cli - Build and run swap CLI tool"
|
||||
@echo " test - Run tests"
|
||||
@echo " test-mm - Run market manager tests"
|
||||
@echo " test-coverage - Run tests with coverage report"
|
||||
|
||||
Reference in New Issue
Block a user