degenbot.types.abstract.pool_tracker¶

Abstract pool tracker protocol definition.

Module Contents¶

class degenbot.types.abstract.pool_tracker.AbstractPoolTracker[Pool: degenbot.types.abstract.liquidity_pool.AbstractLiquidityPool](factory_address: str, bot: degenbot.bot.Bot, *, chain_id: degenbot.types.aliases.ChainId | None = None, **kwargs: Any)¶

Base class for liquidity trackers.

pool_factory: type[Pool]¶
remove(pool_address: degenbot.types.chain.ChecksummedAddress | str) → None¶

Perform remove.

tracked_pool_count() → int¶

Return the number of pools currently tracked.

Narrow teardown-introspection probe: Bot.release_python_state / Bot.close clear the tracker caches; this exposes the tracked cache size without reaching into the private _tracked_pools dict. Idempotent and side-effect free.

Returns:

The number of pools in _tracked_pools.

untracked_pool_count() → int¶

Return the number of pools explicitly known to be untracked.

Counterpart to tracked_pool_count() for the _untracked_pools set; side-effect free.

Returns:

The number of addresses in _untracked_pools.

property chain_id: degenbot.types.aliases.ChainId¶

Chain id.

property deployer_address: degenbot.types.chain.ChecksummedAddress¶

Deployer address.

property factory_address: degenbot.types.chain.ChecksummedAddress¶

Factory address.