VoterType

class cometa.voting_procedures.voter_type.VoterType(value)[source]

Bases: IntEnum

Represents different kinds of voters within the Cardano governance system.

Various roles in the Cardano ecosystem can participate in voting, including: - Constitutional Committee members (identified by key hash or script hash) - DReps (Delegation Representatives, identified by key hash or script hash) - SPOs (Stake Pool Operators, identified by key hash)

CONSTITUTIONAL_COMMITTEE_KEY_HASH = 0

Represents a constitutional committee member identified by a key hash.

CONSTITUTIONAL_COMMITTEE_SCRIPT_HASH = 1

Represents a constitutional committee member identified by a script hash.

DREP_KEY_HASH = 2

Represents a DRep (Delegation Representative) identified by a key hash.

DREP_SCRIPT_HASH = 3

Represents a DRep (Delegation Representative) identified by a script hash.

STAKE_POOL_KEY_HASH = 4

Represents a Stake Pool Operator (SPO) identified by a key hash.

to_string()[source]

Returns a human-readable string representation of this voter type.

Returns:

A string representation of the voter type.

Return type:

str

Example

>>> from cometa.voting_procedures import VoterType
>>> voter_type = VoterType.DREP_KEY_HASH
>>> voter_type.to_string()
'DRep Key Hash'