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:
3
pkg/cache/interface.go
vendored
3
pkg/cache/interface.go
vendored
@@ -24,6 +24,9 @@ type PoolCache interface {
|
||||
// GetByLiquidity retrieves pools sorted by liquidity (descending)
|
||||
GetByLiquidity(ctx context.Context, minLiquidity *big.Int, limit int) ([]*types.PoolInfo, error)
|
||||
|
||||
// GetPoolsByToken retrieves all pools containing a specific token
|
||||
GetPoolsByToken(ctx context.Context, token common.Address) ([]*types.PoolInfo, error)
|
||||
|
||||
// Add adds or updates a pool in the cache
|
||||
Add(ctx context.Context, pool *types.PoolInfo) error
|
||||
|
||||
|
||||
Reference in New Issue
Block a user