From 4a854357a893d9619b4c309afb495978c67efea8 Mon Sep 17 00:00:00 2001 From: Evgeny Gusarov Date: Thu, 26 Feb 2026 22:14:13 +0300 Subject: [PATCH 1/2] Add validators_manager_address to /info endpoint --- .gitignore | 11 +++++++++++ pyproject.toml | 3 ++- src/common/endpoints.py | 7 ++++++- src/common/schema.py | 1 + 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 0b5a9b0..377b37b 100644 --- a/.gitignore +++ b/.gitignore @@ -160,3 +160,14 @@ 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 From 1847fbbd1174e284f4977b0b39337b54e89dd14e Mon Sep 17 00:00:00 2001 From: Evgeny Gusarov Date: Fri, 27 Feb 2026 10:48:57 +0300 Subject: [PATCH 2/2] Fix lint --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index 377b37b..cb7d694 100644 --- a/.gitignore +++ b/.gitignore @@ -170,4 +170,3 @@ CLAUDE.md # VSCode .vscode/ -