agent0.chainsync.dashboard.build_dashboard_dfs ============================================== .. py:module:: agent0.chainsync.dashboard.build_dashboard_dfs .. autoapi-nested-parse:: Builds the dataframes used by the dashboard. .. !! processed by numpydoc !! Functions --------- .. autoapisummary:: agent0.chainsync.dashboard.build_dashboard_dfs.build_pool_dashboard agent0.chainsync.dashboard.build_dashboard_dfs.build_wallet_dashboard Module Contents --------------- .. py:function:: build_pool_dashboard(hyperdrive_address: str, session: sqlalchemy.orm.Session, max_live_blocks: int = 20000, max_ticker_rows: int = 10000) -> dict[str, pandas.DataFrame] Builds the dataframes for the main dashboard page that focuses on pools. :param hyperdrive_address: The hyperdrive address to filter the results on. :type hyperdrive_address: str :param session: The initialized sqlalchemy db session object. :type session: Session :param max_live_blocks: The maximum look-back length in blocks. Defaults to 5000. :type max_live_blocks: int, optional :param max_ticker_rows: The maximum number of ticker rows to show. Defaults to 1000. :type max_ticker_rows: int, optional :returns: A collection of dataframes ready to be shown in the dashboard. :rtype: dict[str, DataFrame] .. !! processed by numpydoc !! .. py:function:: build_wallet_dashboard(wallet_addresses: list[str], session: sqlalchemy.orm.Session, user_map: pandas.DataFrame | None = None, max_plot_blocks: int = 5000, max_ticker_rows: int = 1000) -> dict[str, pandas.DataFrame] Builds the dataframes for the main dashboard page that focuses on pools. :param wallet_addresses: The list of wallet addresses to filter the results on. :type wallet_addresses: list[str] :param session: The initialized sqlalchemy db session object. :type session: Session :param user_map: The mapping of wallet addresses to usernames. Will build from db if None. :type user_map: pd.DataFrame | None, optional :param max_plot_blocks: The maximum number of blocks to look in the past for plotting. Defaults to 5000. :type max_plot_blocks: int, optional :param max_ticker_rows: The maximum number of ticker rows to show. Defaults to 1000. :type max_ticker_rows: int, optional :returns: A collection of dataframes ready to be shown in the dashboard. :rtype: dict[str, DataFrame] .. !! processed by numpydoc !!