diff --git a/.gitignore b/.gitignore index 0b5a9b0..cb7d694 100644 --- a/.gitignore +++ b/.gitignore @@ -160,3 +160,13 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. .idea/ + +# Claude Code +CLAUDE.md +.claude/ + +# OS +.DS_Store + +# VSCode +.vscode/ diff --git a/pyproject.toml b/pyproject.toml index b9f2faf..65d6e05 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -107,6 +107,7 @@ ignore_names = [ "app_instance", "register_validators", "fund_validators", # used in API routes "withdraw_validators", "consolidate_validators", # used in API routes - "get_info" # used in API routes + "get_info", # used in API routes + "validators_manager_address", # pydantic field ] ignore_decorators = ["@router"] diff --git a/src/common/endpoints.py b/src/common/endpoints.py index 758b755..b0dfd8c 100644 --- a/src/common/endpoints.py +++ b/src/common/endpoints.py @@ -1,5 +1,6 @@ from fastapi import APIRouter +from src.common.app_state import AppState from src.common.schema import InfoResponse from src.config import settings @@ -8,4 +9,8 @@ @router.get('/info') async def get_info() -> InfoResponse: - return InfoResponse(network=settings.network) + app_state = AppState() + return InfoResponse( + network=settings.network, + validators_manager_address=app_state.validators_manager_account.address, + ) diff --git a/src/common/schema.py b/src/common/schema.py index dad3f88..d7864f7 100644 --- a/src/common/schema.py +++ b/src/common/schema.py @@ -3,3 +3,4 @@ class InfoResponse(BaseModel): network: str + validators_manager_address: str