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.
- 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.closeclear the tracker caches; this exposes the tracked cache size without reaching into the private_tracked_poolsdict. 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_poolsset; 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.