governance_user¶
- class algofipy.governance.v1.governance_user.GovernanceUser(governance_client, address)¶
Bases:
object
- load_state(block=None)¶
A function which will load in all of the state for a governance user including their admin state, voting escrow state, and rewards manager state into the governance user object.
- Parameters:
block (int, optional) – block at which to load user governance state
- voted_in_proposal(proposal_app_id)¶
Return a dict of information for the user vote in a proposal
- Parameters:
proposal_app_id (int) – proposal app id for a proposal
- Returns:
dict of information about the user proposal vote
- Return type:
dict