Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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/
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
7 changes: 6 additions & 1 deletion src/common/endpoints.py
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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,
)
1 change: 1 addition & 0 deletions src/common/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@

class InfoResponse(BaseModel):
network: str
validators_manager_address: str
Loading