| Copyright | (c) 2025 GYELD GMBH |
|---|---|
| License | Apache 2.0 |
| Maintainer | [email protected] |
| Stability | develop |
| Safe Haskell | None |
| 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 :: PlutusVersion) = Map GYVoter (GYTxBuildWitness v, Map GYGovActionId GYVotingProcedure)
- combineTxVotingProcedures :: forall (v :: PlutusVersion). 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 Methods (==) :: GYGovActionId -> GYGovActionId -> Bool # (/=) :: GYGovActionId -> GYGovActionId -> Bool # | |
| Ord GYGovActionId # | |
Defined in GeniusYield.Types.Governance Methods compare :: GYGovActionId -> GYGovActionId -> Ordering # (<) :: GYGovActionId -> GYGovActionId -> Bool # (<=) :: GYGovActionId -> GYGovActionId -> Bool # (>) :: GYGovActionId -> GYGovActionId -> Bool # (>=) :: GYGovActionId -> GYGovActionId -> Bool # max :: GYGovActionId -> GYGovActionId -> GYGovActionId # min :: GYGovActionId -> GYGovActionId -> GYGovActionId # | |
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 (==) :: GYVotingProcedure -> GYVotingProcedure -> Bool # (/=) :: GYVotingProcedure -> GYVotingProcedure -> Bool # | |
| 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 :: PlutusVersion) = Map GYVoter (GYTxBuildWitness v, Map GYGovActionId GYVotingProcedure) #
combineTxVotingProcedures :: forall (v :: PlutusVersion). 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 | |
Fields | |
Instances
| Show GYProposalProcedurePB # | |
Defined in GeniusYield.Types.Governance Methods showsPrec :: Int -> GYProposalProcedurePB -> ShowS # show :: GYProposalProcedurePB -> String # showList :: [GYProposalProcedurePB] -> ShowS # | |
| Eq GYProposalProcedurePB # | |
Defined in GeniusYield.Types.Governance Methods (==) :: GYProposalProcedurePB -> GYProposalProcedurePB -> Bool # (/=) :: GYProposalProcedurePB -> GYProposalProcedurePB -> Bool # | |
| Ord GYProposalProcedurePB # | |
Defined in GeniusYield.Types.Governance Methods compare :: GYProposalProcedurePB -> GYProposalProcedurePB -> Ordering # (<) :: GYProposalProcedurePB -> GYProposalProcedurePB -> Bool # (<=) :: GYProposalProcedurePB -> GYProposalProcedurePB -> Bool # (>) :: GYProposalProcedurePB -> GYProposalProcedurePB -> Bool # (>=) :: GYProposalProcedurePB -> GYProposalProcedurePB -> Bool # max :: GYProposalProcedurePB -> GYProposalProcedurePB -> GYProposalProcedurePB # min :: GYProposalProcedurePB -> GYProposalProcedurePB -> GYProposalProcedurePB # | |
data GYProposalProcedure #
Constructors
| GYProposalProcedure | |
Fields | |
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 (==) :: GYProposalProcedure -> GYProposalProcedure -> Bool # (/=) :: GYProposalProcedure -> GYProposalProcedure -> Bool # | |
| 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 # max :: GYConstitution -> GYConstitution -> GYConstitution # min :: GYConstitution -> GYConstitution -> GYConstitution # | |
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
| GYGovActionState | |
Fields
| |
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 (==) :: GYGovActionState -> GYGovActionState -> Bool # (/=) :: GYGovActionState -> GYGovActionState -> Bool # | |
| 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 # | |