degenbot.types.chain ==================== .. py:module:: degenbot.types.chain .. autoapi-nested-parse:: Chain identifiers and EVM type aliases — the ``eth_typing`` replacement home. degenbot consumes only a small slice of ``eth_typing``: the ``ChainId`` int-enum (as hash-equal dict keys into deployment registries) and a handful of address/hash/block/ABI annotation aliases. This module owns those; the ``eth_typing`` dependency has since been dropped outright. Address and hash aliases are plain ``str`` (not ``NewType``): the runtime is already plain strings (EIP-55 checksummed), matching ``degenbot.types.aliases`` and the ``degenbot._ffi`` stub contract. Module Contents --------------- .. py:class:: ChainId Bases: :py:obj:`enum.IntEnum` Chain identifiers degenbot deploys against. ``IntEnum`` so members hash-equal their plain ints (deployment-registry lookups use both forms interchangeably). .. py:attribute:: ETH :value: 1 .. py:attribute:: FTM :value: 250 .. py:attribute:: AVAX :value: 43114 .. py:attribute:: ARB1 :value: 42161 .. py:attribute:: BASE :value: 8453 .. py:type:: HexStr :canonical: str .. py:type:: HexAddress :canonical: str .. py:type:: ChecksummedAddress :canonical: str .. py:type:: Hash32 :canonical: str .. py:type:: Address :canonical: str .. py:data:: BlockParams .. py:type:: TypeStr :canonical: str .. py:class:: ABIComponent Bases: :py:obj:`TypedDict` TypedDict representing an ABI element component. .. py:attribute:: type :type: str .. py:attribute:: name :type: NotRequired[str] .. py:attribute:: components :type: NotRequired[collections.abc.Sequence[ABIComponent]] .. py:class:: ABIComponentIndexed Bases: :py:obj:`ABIComponent` TypedDict for a component usable as a topic filter. .. py:attribute:: indexed :type: bool .. py:class:: ABIEvent Bases: :py:obj:`TypedDict` TypedDict to represent the ABI for an event (was ``eth_typing.ABIEvent``). .. py:attribute:: name :type: str .. py:attribute:: type :type: Literal['event'] .. py:attribute:: anonymous :type: NotRequired[bool] .. py:attribute:: inputs :type: NotRequired[collections.abc.Sequence[ABIComponentIndexed]]