Copyright | (c) 2025 GYELD GMBH |
---|---|
License | Apache 2.0 |
Maintainer | [email protected] |
Stability | develop |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
GeniusYield.Types.Governance
Description
Synopsis
- data GYVote
- voteFromLedger ∷ Vote → GYVote
- voteToLedger ∷ GYVote → Vote
- data GYVoter
- voterFromLedger ∷ Voter (EraCrypto StandardConway) → GYVoter
- voterToLedger ∷ GYVoter → Voter Era
- data GYGovActionId = GYGovActionId {}
- govActionIdFromLedger ∷ GovActionId Era → GYGovActionId
- govActionIdToLedger ∷ GYGovActionId → GovActionId Era
- data GYVotingProcedure = GYVotingProcedure {}
- votingProcedureFromLedger ∷ VotingProcedure StandardConway → GYVotingProcedure
- votingProcedureToLedger ∷ GYVotingProcedure → VotingProcedure StandardConway
- type GYVotingProcedures = Map GYVoter (Map GYGovActionId GYVotingProcedure)
- votingProceduresFromLedger ∷ VotingProcedures StandardConway → GYVotingProcedures
- votingProceduresToLedger ∷ GYVotingProcedures → VotingProcedures StandardConway
- combineVotingProcedures ∷ GYVotingProcedures → GYVotingProcedures → GYVotingProcedures
- type GYTxVotingProcedures v = Map GYVoter (GYTxBuildWitness v, Map GYGovActionId GYVotingProcedure)
- combineTxVotingProcedures ∷ GYTxVotingProcedures v → GYTxVotingProcedures v → GYTxVotingProcedures v
- data GYProposalProcedurePB = GYProposalProcedurePB {}
- data GYProposalProcedure = GYProposalProcedure {}
- completeProposalProcedure ∷ GYProposalProcedurePB → Natural → GYProposalProcedure
- propProcToLedger ∷ GYProposalProcedure → ProposalProcedure StandardConway
- data GYConstitution = GYConstitution {}
- constitutionToLedger ∷ GYConstitution → Constitution StandardConway
- data GYGovAction
- = ParameterChange !(Maybe GYGovActionId) !(PParamsUpdate StandardConway) !(Maybe GYScriptHash)
- | HardForkInitiation !(Maybe GYGovActionId) !ProtVer
- | TreasuryWithdrawals !(Map GYStakeAddress Natural) !(Maybe GYScriptHash)
- | NoConfidence !(Maybe GYGovActionId)
- | UpdateCommittee !(Maybe GYGovActionId) !(Set (GYCredential 'GYKeyRoleColdCommittee)) !(Map (GYCredential 'GYKeyRoleColdCommittee) GYEpochNo) !UnitInterval
- | NewConstitution !(Maybe GYGovActionId) !GYConstitution
- | InfoAction
- govActionToLedger ∷ GYGovAction → GovAction StandardConway
Documentation
Vote on a governance proposal.
voteFromLedger ∷ Vote → GYVote #
voteToLedger ∷ GYVote → Vote #
Voter.
Constructors
CommitteeVoter !(GYCredential 'GYKeyRoleHotCommittee) | |
DRepVoter !(GYCredential 'GYKeyRoleDRep) | |
StakePoolVoter !(GYKeyHash 'GYKeyRoleStakePool) |
voterToLedger ∷ GYVoter → Voter Era #
data GYGovActionId #
Constructors
GYGovActionId | |
Instances
Show GYGovActionId # | |
Defined in GeniusYield.Types.Governance Methods showsPrec ∷ Int → GYGovActionId → ShowS # show ∷ GYGovActionId → String # showList ∷ [GYGovActionId] → ShowS # | |
Eq GYGovActionId # | |
Defined in GeniusYield.Types.Governance | |
Ord GYGovActionId # | |
Defined in GeniusYield.Types.Governance Methods compare ∷ GYGovActionId → GYGovActionId → Ordering # (<) ∷ GYGovActionId → GYGovActionId → Bool # (<=) ∷ GYGovActionId → GYGovActionId → Bool # (>) ∷ GYGovActionId → GYGovActionId → Bool # (>=) ∷ GYGovActionId → GYGovActionId → Bool # |
govActionIdToLedger ∷ GYGovActionId → GovActionId Era #
data GYVotingProcedure #
Voting procedure.
Instances
Show GYVotingProcedure # | |
Defined in GeniusYield.Types.Governance Methods showsPrec ∷ Int → GYVotingProcedure → ShowS # show ∷ GYVotingProcedure → String # showList ∷ [GYVotingProcedure] → ShowS # | |
Eq GYVotingProcedure # | |
Defined in GeniusYield.Types.Governance Methods | |
Ord GYVotingProcedure # | |
Defined in GeniusYield.Types.Governance Methods compare ∷ GYVotingProcedure → GYVotingProcedure → Ordering # (<) ∷ GYVotingProcedure → GYVotingProcedure → Bool # (<=) ∷ GYVotingProcedure → GYVotingProcedure → Bool # (>) ∷ GYVotingProcedure → GYVotingProcedure → Bool # (>=) ∷ GYVotingProcedure → GYVotingProcedure → Bool # max ∷ GYVotingProcedure → GYVotingProcedure → GYVotingProcedure # min ∷ GYVotingProcedure → GYVotingProcedure → GYVotingProcedure # |
combineVotingProcedures ∷ GYVotingProcedures → GYVotingProcedures → GYVotingProcedures #
Combine two voting procedures. Here if a voter has voted on the same proposal in both procedures, the vote from the second procedure is taken.
type GYTxVotingProcedures v = Map GYVoter (GYTxBuildWitness v, Map GYGovActionId GYVotingProcedure) #
combineTxVotingProcedures ∷ GYTxVotingProcedures v → GYTxVotingProcedures v → GYTxVotingProcedures v #
Combine two voting procedures. Here if a voter has voted on the same proposal in both procedures, the vote from the second procedure is taken. Likewise, witness from the second map is taken in case of conflicts.
data GYProposalProcedurePB #
Constructors
GYProposalProcedurePB | |
Instances
data GYProposalProcedure #
Constructors
GYProposalProcedure | |
Instances
Show GYProposalProcedure # | |
Defined in GeniusYield.Types.Governance Methods showsPrec ∷ Int → GYProposalProcedure → ShowS # show ∷ GYProposalProcedure → String # showList ∷ [GYProposalProcedure] → ShowS # | |
Eq GYProposalProcedure # | |
Defined in GeniusYield.Types.Governance Methods | |
Ord GYProposalProcedure # | |
Defined in GeniusYield.Types.Governance Methods compare ∷ GYProposalProcedure → GYProposalProcedure → Ordering # (<) ∷ GYProposalProcedure → GYProposalProcedure → Bool # (<=) ∷ GYProposalProcedure → GYProposalProcedure → Bool # (>) ∷ GYProposalProcedure → GYProposalProcedure → Bool # (>=) ∷ GYProposalProcedure → GYProposalProcedure → Bool # max ∷ GYProposalProcedure → GYProposalProcedure → GYProposalProcedure # min ∷ GYProposalProcedure → GYProposalProcedure → GYProposalProcedure # |
data GYConstitution #
Constructors
GYConstitution | |
Fields |
Instances
Show GYConstitution # | |
Defined in GeniusYield.Types.Governance Methods showsPrec ∷ Int → GYConstitution → ShowS # show ∷ GYConstitution → String # showList ∷ [GYConstitution] → ShowS # | |
Eq GYConstitution # | |
Defined in GeniusYield.Types.Governance Methods (==) ∷ GYConstitution → GYConstitution → Bool # (/=) ∷ GYConstitution → GYConstitution → Bool # | |
Ord GYConstitution # | |
Defined in GeniusYield.Types.Governance Methods compare ∷ GYConstitution → GYConstitution → Ordering # (<) ∷ GYConstitution → GYConstitution → Bool # (<=) ∷ GYConstitution → GYConstitution → Bool # (>) ∷ GYConstitution → GYConstitution → Bool # (>=) ∷ GYConstitution → GYConstitution → Bool # |
data GYGovAction #
Constructors
ParameterChange | |
Fields
| |
HardForkInitiation | |
Fields
| |
TreasuryWithdrawals | |
Fields
| |
NoConfidence | |
Fields
| |
UpdateCommittee | |
Fields
| |
NewConstitution | |
Fields
| |
InfoAction |
Instances
Show GYGovAction # | |
Defined in GeniusYield.Types.Governance Methods showsPrec ∷ Int → GYGovAction → ShowS # show ∷ GYGovAction → String # showList ∷ [GYGovAction] → ShowS # | |
Eq GYGovAction # | |
Defined in GeniusYield.Types.Governance | |
Ord GYGovAction # | |
Defined in GeniusYield.Types.Governance Methods compare ∷ GYGovAction → GYGovAction → Ordering # (<) ∷ GYGovAction → GYGovAction → Bool # (<=) ∷ GYGovAction → GYGovAction → Bool # (>) ∷ GYGovAction → GYGovAction → Bool # (>=) ∷ GYGovAction → GYGovAction → Bool # max ∷ GYGovAction → GYGovAction → GYGovAction # min ∷ GYGovAction → GYGovAction → GYGovAction # |