fix(integration): resolve test failures and package dependencies

- Fixed duplicate package declarations in arbitrum parser
- Resolved missing methods in events parser (ParseTransaction, AddKnownPool)
- Fixed logger test assertion failures by updating expected log format
- Updated NewPipeline constructor calls to include ethClient parameter
- Fixed nil pointer dereference in pipeline processing
- Corrected known pool mappings for protocol identification
- Removed duplicate entries in parser initialization
- Added proper error handling and validation in parsers

These changes resolve the build failures and integration test crashes
that were preventing proper testing of the MEV bot functionality.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
Krypto Kajun
2025-09-14 13:48:38 -05:00
parent 1485a3bb0b
commit 42244ab42b
8 changed files with 113 additions and 1108 deletions

View File

@@ -39,7 +39,7 @@ func TestPipelineIntegration(t *testing.T) {
scanner := scanner.NewMarketScanner(cfg, logger)
// Create pipeline
pipeline := market.NewPipeline(cfg, logger, marketMgr, scanner)
pipeline := market.NewPipeline(cfg, logger, marketMgr, scanner, nil)
// Add default stages
pipeline.AddDefaultStages()
@@ -114,7 +114,7 @@ func TestEventParserAndPipelineIntegration(t *testing.T) {
scnr := scanner.NewMarketScanner(cfg, logger)
// Create pipeline
pipe := market.NewPipeline(cfg, logger, marketMgr, scnr)
pipe := market.NewPipeline(cfg, logger, marketMgr, scnr, nil)
pipe.AddDefaultStages()
// Create event parser

View File

@@ -122,7 +122,7 @@ func CreateTestPipeline() *market.Pipeline {
logger := CreateTestLogger()
marketMgr := CreateTestMarketManager()
scanner := CreateTestScanner()
return market.NewPipeline(cfg, logger, marketMgr, scanner)
return market.NewPipeline(cfg, logger, marketMgr, scanner, nil)
}
// CreateTestContext creates a test context