Skip to content

Commit

Permalink
fix(api): properly type xStakeAggregate (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-schultz authored Aug 29, 2023
1 parent 1099bee commit 432430f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion api/registry/api/v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 432430f

Please sign in to comment.