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 → GYVoter
- voterToLedger ∷ GYVoter → Voter
- data GYGovActionId = GYGovActionId {}
- govActionIdFromLedger ∷ GovActionId → GYGovActionId
- govActionIdToLedger ∷ GYGovActionId → GovActionId
- data GYVotingProcedure = GYVotingProcedure {}
- votingProcedureFromLedger ∷ VotingProcedure ConwayEra → GYVotingProcedure
- votingProcedureToLedger ∷ GYVotingProcedure → VotingProcedure ConwayEra
- type GYVotingProcedures = Map GYVoter (Map GYGovActionId GYVotingProcedure)
- votingProceduresFromLedger ∷ VotingProcedures ConwayEra → GYVotingProcedures
- votingProceduresToLedger ∷ GYVotingProcedures → VotingProcedures ConwayEra
- 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 ConwayEra
- propProcFromLedger ∷ ProposalProcedure ConwayEra → GYProposalProcedure
- data GYConstitution = GYConstitution {}
- constitutionToLedger ∷ GYConstitution → Constitution ConwayEra
- constitutionFromLedger ∷ Constitution ConwayEra → GYConstitution
- data GYGovAction
- = ParameterChange !(Maybe GYGovActionId) !(PParamsUpdate ConwayEra) !(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 ConwayEra
- govActionFromLedger ∷ GovAction ConwayEra → GYGovAction
- data GYGovActionState = GYGovActionState {
- gasId ∷ !GYGovActionId
- gasCommitteeVotes ∷ !(Map (GYCredential 'GYKeyRoleHotCommittee) GYVote)
- gasDRepVotes ∷ !(Map (GYCredential 'GYKeyRoleDRep) GYVote)
- gasStakePoolVotes ∷ !(Map (GYKeyHash 'GYKeyRoleStakePool) GYVote)
- gasProposalProcedure ∷ !GYProposalProcedure
- gasProposedIn ∷ !GYEpochNo
- gasExpiresAfter ∷ !GYEpochNo
- govActionStateToLedger ∷ GYGovActionState → GovActionState ConwayEra
- govActionStateFromLedger ∷ GovActionState ConwayEra → GYGovActionState
Documentation
Vote on a governance proposal.
voteFromLedger ∷ Vote → GYVote #
voteToLedger ∷ GYVote → Vote #
Voter.
Constructors
CommitteeVoter !(GYCredential 'GYKeyRoleHotCommittee) | |
DRepVoter !(GYCredential 'GYKeyRoleDRep) | |
StakePoolVoter !(GYKeyHash 'GYKeyRoleStakePool) |
voterFromLedger ∷ Voter → GYVoter #
voterToLedger ∷ GYVoter → Voter #
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 # |
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 # |
data GYGovActionState #
Constructors
Instances
Show GYGovActionState # | |
Defined in GeniusYield.Types.Governance Methods showsPrec ∷ Int → GYGovActionState → ShowS # show ∷ GYGovActionState → String # showList ∷ [GYGovActionState] → ShowS # | |
Eq GYGovActionState # | |
Defined in GeniusYield.Types.Governance Methods | |
Ord GYGovActionState # | |
Defined in GeniusYield.Types.Governance Methods compare ∷ GYGovActionState → GYGovActionState → Ordering # (<) ∷ GYGovActionState → GYGovActionState → Bool # (<=) ∷ GYGovActionState → GYGovActionState → Bool # (>) ∷ GYGovActionState → GYGovActionState → Bool # (>=) ∷ GYGovActionState → GYGovActionState → Bool # max ∷ GYGovActionState → GYGovActionState → GYGovActionState # min ∷ GYGovActionState → GYGovActionState → GYGovActionState # |