Skip to content

feat(query_group): add methods for DRep and gov action deposits #290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 12, 2025
Merged
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 cardano_clusterlib/query_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,16 @@ def get_pool_deposit(self) -> int:
pparams = self.get_protocol_params()
return pparams.get("stakePoolDeposit") or 0

def get_drep_deposit(self) -> int:
"""Return DRep deposit amount."""
pparams = self.get_protocol_params()
return pparams.get("dRepDeposit") or 0

def get_gov_action_deposit(self) -> int:
"""Return governance action deposit amount."""
pparams = self.get_protocol_params()
return pparams.get("govActionDeposit") or 0

def get_stake_distribution(self) -> dict[str, float]:
"""Return current aggregated stake distribution per stake pool."""
# Stake pool values are displayed starting with line 2 of the command output
Expand Down
Loading