houndcore.app.types package¶
Submodules¶
houndcore.app.types.context module¶
- houndcore.app.types.context.Context¶
The Handled Subscription Contexts
alias of
EthSubscriptionContext[LogsSubscription,EthSubscriptionResult] |EthSubscriptionContext[PendingTxSubscription,HexBytes|TxData]
houndcore.app.types.subscription module¶
- class houndcore.app.types.subscription.Subscription(label: str | None = None, address: str | list[str] | None = None, topics: list[str] | None = None, handler: Callable | None = None, full_transactions: bool = False, type: Literal['logs', 'pending'] = 'logs')[source]¶
Bases:
objectSubscription, Includes all supported Subscription Types
- Parameters:
label (str) – the subscription label
type (Literal[“logs”, “pending”], optional, def=”logs”) – the subscription type
handler (Callable, optional) – the function to handle the events
address (Union[str, List[str]], optional) – the address/s to track (Only for Logs)
topics (list[str], optional) – the events signatures to track (Only For Logs)
full_transactions (bool, optional, def=False) – wether to return FullTransaction details or not (Only For Pending)