degenbot.builders.request¶

BuildPoolRequest — typed request object for pool construction.

Module Contents¶

class degenbot.builders.request.BuildPoolRequest¶

Typed request object carrying optional parameters for pool construction.

Carries all optional parameters for build_pool() and its dispatched builders. Required parameters (address, chain_id, io) remain on builder.build() as positional/keyword arguments.

Builders read the fields they recognize and ignore the rest.

silent: bool = False¶
state_block: int | None = None¶
state_cache_depth: int = 8¶
tick_bitmap: dict[int, Any] | None = None¶
tick_data: dict[int, Any] | None = None¶
construction_route: ConstructionRoute | None = None¶
bpt_idx: int | None = None¶
invariant_version: int | None = None¶
class degenbot.builders.request.ConstructionRoute¶

The resolved construction-route policy (CONTEXT.md, Construction route).

ONE ordered attempt policy for constructing a family-unknown single-address pool: the factory rungs in policy order, terminating in the generic builder rung. A driver VALUE the cockpit resolves — the core route entry walks it and classifies every failure on the build-refusal taxonomy; the driver never re-implements the chain (the retired tracker fallback chain is the bug this replaces).

factories: tuple[str, ...] = ()¶
generic: bool = True¶
class degenbot.builders.request.BuildManagedPoolRequest¶

Typed request object for V4 managed-pool construction.

pool_id is required — V4 pools cannot be discovered without it. Immutable data (state_view_address, tokens, fee, tick_spacing, hook_address) is required when the pool is not in the database; otherwise it is fetched from DB.

pool_id: str | bytes¶
silent: bool = False¶
state_block: int | None = None¶
state_cache_depth: int = 8¶
state_view_address: str | None = None¶
tokens: collections.abc.Sequence[str] | None = None¶
fee: int | None = None¶
tick_spacing: int | None = None¶
hook_address: str | None = None¶
tick_bitmap: dict[int, Any] | None = None¶
tick_data: dict[int, Any] | None = None¶
degenbot.builders.request.BuildRequest¶