Source code for fractal.loaders.thegraph.uniswap_v2.uniswap_v2_ethereum

from fractal.loaders.base_loader import LoaderType
from fractal.loaders.thegraph.base_graph_loader import ArbitrumGraphLoader


[docs] class EthereumUniswapV2Loader(ArbitrumGraphLoader): """ Loader for Uniswap V2 Ethereum. The Graph: https://thegraph.com/explorer/subgraphs/EYCKATKGBKLWvSfwvBjzfCBmGwYNdVkduYXVivCsLRFu?view=Query&chain=arbitrum-one SUBGRAPH_ID = "EYCKATKGBKLWvSfwvBjzfCBmGwYNdVkduYXVivCsLRFu" """ SUBGRAPH_ID = "EYCKATKGBKLWvSfwvBjzfCBmGwYNdVkduYXVivCsLRFu" def __init__(self, api_key: str, loader_type: LoaderType) -> None: """ Args: api_key (str): The Graph API key loader_type (LoaderType): loader type """ super().__init__(api_key=api_key, subgraph_id=self.SUBGRAPH_ID, loader_type=loader_type)