Skip to content

Commit

Permalink
Merge pull request input-output-hk#254 from input-output-hk/add_treas…
Browse files Browse the repository at this point in the history
…ury_query

Add treasury query
  • Loading branch information
mkoura authored Aug 16, 2024
2 parents b557154 + 8b84266 commit 8b0e50c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cardano_clusterlib/conway_gov_query_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,9 @@ def committee_state(self) -> tp.Dict[str, tp.Any]:
out: tp.Dict[str, tp.Any] = json.loads(self.query_cli(["committee-state"]))
return out

def treasury(self) -> int:
"""Get the treasury value."""
return int(self.query_cli(["treasury"]))

def __repr__(self) -> str:
return f"<{self.__class__.__name__}: clusterlib_obj={id(self._clusterlib_obj)}>"

0 comments on commit 8b0e50c

Please sign in to comment.