fix(compilation): resolve type system and interface errors
- Add GetPoolsByToken method to cache interface and implementation - Fix interface pointer types (use interface not *interface) - Fix SwapEvent.TokenIn/TokenOut usage to use GetInputToken/GetOutputToken methods - Fix ethereum.CallMsg import and usage - Fix parser factory and validator initialization in main.go - Remove unused variables and imports WIP: Still fixing main.go config struct field mismatches 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -8,8 +8,8 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/ethereum/go-ethereum"
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/core/types"
|
||||
"github.com/ethereum/go-ethereum/ethclient"
|
||||
|
||||
"github.com/your-org/mev-bot/pkg/arbitrage"
|
||||
@@ -254,7 +254,7 @@ func (rm *RiskManager) SimulateExecution(
|
||||
defer cancel()
|
||||
|
||||
// Create call message
|
||||
msg := types.CallMsg{
|
||||
msg := ethereum.CallMsg{
|
||||
To: &tx.To,
|
||||
Gas: tx.GasLimit,
|
||||
GasPrice: tx.MaxFeePerGas,
|
||||
|
||||
Reference in New Issue
Block a user