Copyright | (c) 2025 GYELD GMBH |
---|---|
License | Apache 2.0 |
Maintainer | [email protected] |
Stability | develop |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
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.
CommitteeVoter !(GYCredential 'GYKeyRoleHotCommittee) | |
DRepVoter !(GYCredential 'GYKeyRoleDRep) | |
StakePoolVoter !(GYKeyHash 'GYKeyRoleStakePool) |
voterToLedger ∷ GYVoter → Voter Era #
data GYGovActionId #
Instances
Show GYGovActionId # | |
Defined in GeniusYield.Types.Governance showsPrec ∷ Int → GYGovActionId → ShowS # show ∷ GYGovActionId → String # showList ∷ [GYGovActionId] → ShowS # | |
Eq GYGovActionId # | |
Defined in GeniusYield.Types.Governance (==) ∷ GYGovActionId → GYGovActionId → Bool # (/=) ∷ GYGovActionId → GYGovActionId → Bool # | |
Ord GYGovActionId # | |
Defined in GeniusYield.Types.Governance 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
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 #
Instances
data GYProposalProcedure #
Instances
data GYConstitution #
Instances
Show GYConstitution # | |
Defined in GeniusYield.Types.Governance showsPrec ∷ Int → GYConstitution → ShowS # show ∷ GYConstitution → String # showList ∷ [GYConstitution] → ShowS # | |
Eq GYConstitution # | |
Defined in GeniusYield.Types.Governance (==) ∷ GYConstitution → GYConstitution → Bool # (/=) ∷ GYConstitution → GYConstitution → Bool # | |
Ord GYConstitution # | |
Defined in GeniusYield.Types.Governance compare ∷ GYConstitution → GYConstitution → Ordering # (<) ∷ GYConstitution → GYConstitution → Bool # (<=) ∷ GYConstitution → GYConstitution → Bool # (>) ∷ GYConstitution → GYConstitution → Bool # (>=) ∷ GYConstitution → GYConstitution → Bool # |
data GYGovAction #
ParameterChange | |
| |
HardForkInitiation | |
| |
TreasuryWithdrawals | |
| |
NoConfidence | |
| |
UpdateCommittee | |
| |
NewConstitution | |
| |
InfoAction |
Instances
Show GYGovAction # | |
Defined in GeniusYield.Types.Governance showsPrec ∷ Int → GYGovAction → ShowS # show ∷ GYGovAction → String # showList ∷ [GYGovAction] → ShowS # | |
Eq GYGovAction # | |
Defined in GeniusYield.Types.Governance (==) ∷ GYGovAction → GYGovAction → Bool # (/=) ∷ GYGovAction → GYGovAction → Bool # | |
Ord GYGovAction # | |
Defined in GeniusYield.Types.Governance compare ∷ GYGovAction → GYGovAction → Ordering # (<) ∷ GYGovAction → GYGovAction → Bool # (<=) ∷ GYGovAction → GYGovAction → Bool # (>) ∷ GYGovAction → GYGovAction → Bool # (>=) ∷ GYGovAction → GYGovAction → Bool # max ∷ GYGovAction → GYGovAction → GYGovAction # min ∷ GYGovAction → GYGovAction → GYGovAction # |