From 432430ffafa341ff2707ce9502169de9d878e067 Mon Sep 17 00:00:00 2001 From: Tim <6887938+digitalmnt@users.noreply.github.com> Date: Tue, 29 Aug 2023 14:44:06 -0600 Subject: [PATCH] fix(api): properly type xStakeAggregate (#376) --- api/registry/api/v1.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/api/registry/api/v1.py b/api/registry/api/v1.py index 98723e42a..843c2c087 100644 --- a/api/registry/api/v1.py +++ b/api/registry/api/v1.py @@ -672,9 +672,14 @@ class Stake(BaseModel): round: Round +class XstakeAggregate(BaseModel): + total: str + round: Round + + class User(BaseModel): stakes: Optional[List[Stake]] = [] - xstakeAggregates: Optional[List[str]] = [] + xstakeAggregates: Optional[List[XstakeAggregate]] = [] class GqlResponse(BaseModel):