cardano-rpc
Safe HaskellNone
LanguageHaskell2010

Cardano.Rpc.Server.Internal.UtxoRpc.Type.Governance

Synopsis

Documentation

proposalProcedureToUtxoRpcProposal :: ConwayEraPParams era => ProposalProcedure era -> Proto GovernanceActionProposal Source #

Convert a ledger governance proposal procedure to the UTxO RPC GovernanceActionProposal message.

voterVotesToUtxoRpcVoterVotes :: Voter -> Map GovActionId (VotingProcedure era) -> Proto VoterVotes Source #

Convert a ledger voter together with all votes they cast in a transaction to the UTxO RPC VoterVotes message, dispatching on the voter type to select the corresponding oneof field.