dojo.dataloaders package¶
Dataloaders load protocol events data for dojo environments.
- class dojo.dataloaders.AaveV3Loader(rpc_url: str, chain: Chain, env_name: str, date_range: tuple[datetime, datetime])¶
Bases:
BaseLoader
Class for loading events data from PostgreSQL database.
- class dojo.dataloaders.BaseLoader(rpc_url: str, chain: Chain, env_name: str, date_range: tuple[datetime, datetime], **kwargs: Any)¶
Bases:
ABC
Abstract base class for dataloaders.
This class automatically checks that the events data loaded is in the correct format. It also converts addresses to checksum format and dates to UTC timezone.
You can implement your own dataloader by inheriting from this class and overriding the _load_data method. This method should return a list of dictionaries in the formats specified under dojo/dataloaders/formats.py.
- class dojo.dataloaders.UniswapV3Loader(rpc_url: str, chain: Chain, env_name: str, date_range: Tuple[datetime, datetime], pools: list[str])¶
Bases:
BaseLoader
Class for loading events data from PostgreSQL database.