cardano-api:internal
Safe HaskellNone
LanguageHaskell2010

Cardano.Api.Governance.Actions.VotingProcedure

Synopsis

Documentation

newtype GovernanceActionId era Source #

Instances

Instances details
Show (GovernanceActionId era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

IsShelleyBasedEra era => FromCBOR (GovernanceActionId era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

IsShelleyBasedEra era => ToCBOR (GovernanceActionId era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

Eq (GovernanceActionId era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

Ord (GovernanceActionId era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

newtype Voter era Source #

Constructors

Voter (Voter (EraCrypto (ShelleyLedgerEra era))) 

Instances

Instances details
Show (Voter era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

Methods

showsPrec :: Int -> Voter era -> ShowS Source #

show :: Voter era -> String Source #

showList :: [Voter era] -> ShowS Source #

IsShelleyBasedEra era => FromCBOR (Voter era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

Methods

fromCBOR :: Decoder s (Voter era) Source #

label :: Proxy (Voter era) -> Text Source #

IsShelleyBasedEra era => ToCBOR (Voter era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

Methods

toCBOR :: Voter era -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (Voter era) -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [Voter era] -> Size Source #

Eq (Voter era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

Methods

(==) :: Voter era -> Voter era -> Bool Source #

(/=) :: Voter era -> Voter era -> Bool Source #

Ord (Voter era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

Methods

compare :: Voter era -> Voter era -> Ordering Source #

(<) :: Voter era -> Voter era -> Bool Source #

(<=) :: Voter era -> Voter era -> Bool Source #

(>) :: Voter era -> Voter era -> Bool Source #

(>=) :: Voter era -> Voter era -> Bool Source #

max :: Voter era -> Voter era -> Voter era Source #

min :: Voter era -> Voter era -> Voter era Source #

data Vote Source #

Constructors

No 
Yes 
Abstain 

Instances

Instances details
Show Vote Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

Eq Vote Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

Methods

(==) :: Vote -> Vote -> Bool Source #

(/=) :: Vote -> Vote -> Bool Source #

newtype VotingProcedure era Source #

Instances

Instances details
Show (VotingProcedure era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

HasTypeProxy era => HasTypeProxy (VotingProcedure era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

Associated Types

data AsType (VotingProcedure era) 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

IsShelleyBasedEra era => SerialiseAsCBOR (VotingProcedure era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

IsShelleyBasedEra era => HasTextEnvelope (VotingProcedure era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

IsShelleyBasedEra era => FromCBOR (VotingProcedure era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

IsShelleyBasedEra era => ToCBOR (VotingProcedure era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

Methods

toCBOR :: VotingProcedure era -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (VotingProcedure era) -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [VotingProcedure era] -> Size Source #

Eq (VotingProcedure era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

data AsType (VotingProcedure era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

newtype VotingProcedures era Source #

Instances

Instances details
Generic (VotingProcedures era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

Associated Types

type Rep (VotingProcedures era) 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

type Rep (VotingProcedures era) = D1 ('MetaData "VotingProcedures" "Cardano.Api.Governance.Actions.VotingProcedure" "cardano-api-10.3.0.0-inplace-internal" 'True) (C1 ('MetaCons "VotingProcedures" 'PrefixI 'True) (S1 ('MetaSel ('Just "unVotingProcedures") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (VotingProcedures (ShelleyLedgerEra era)))))
Show (VotingProcedures era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

HasTypeProxy era => HasTypeProxy (VotingProcedures era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

Associated Types

data AsType (VotingProcedures era) 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

IsShelleyBasedEra era => SerialiseAsCBOR (VotingProcedures era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

IsShelleyBasedEra era => HasTextEnvelope (VotingProcedures era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

IsShelleyBasedEra era => FromCBOR (VotingProcedures era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

IsShelleyBasedEra era => ToCBOR (VotingProcedures era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

Methods

toCBOR :: VotingProcedures era -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (VotingProcedures era) -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [VotingProcedures era] -> Size Source #

Eq (VotingProcedures era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

type Rep (VotingProcedures era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

type Rep (VotingProcedures era) = D1 ('MetaData "VotingProcedures" "Cardano.Api.Governance.Actions.VotingProcedure" "cardano-api-10.3.0.0-inplace-internal" 'True) (C1 ('MetaCons "VotingProcedures" 'PrefixI 'True) (S1 ('MetaSel ('Just "unVotingProcedures") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (VotingProcedures (ShelleyLedgerEra era)))))
data AsType (VotingProcedures era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

newtype VotesMergingConflict era Source #

A voter, and the conflicting votes of this voter (i.e. votes with the same governance action identifier)

mergeVotingProcedures Source #

Arguments

:: VotingProcedures era

Votes to merge

-> VotingProcedures era

Votes to merge

-> Either (VotesMergingConflict era) (VotingProcedures era)

Either the conflict found, or the merged votes

mergeVotingProcedures vote1 vote2 merges vote1 and vote2 into a single vote, or fails if the votes are incompatible.