cardano-api:internal
Safe HaskellNone
LanguageHaskell2010

Cardano.Api.Governance.Actions.ProposalProcedure

Synopsis

Documentation

newtype Proposal era Source #

Instances

Instances details
IsShelleyBasedEra era => Show (Proposal era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.ProposalProcedure

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

Defined in Cardano.Api.Governance.Actions.ProposalProcedure

Associated Types

data AsType (Proposal era) 
Instance details

Defined in Cardano.Api.Governance.Actions.ProposalProcedure

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

Defined in Cardano.Api.Governance.Actions.ProposalProcedure

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

Defined in Cardano.Api.Governance.Actions.ProposalProcedure

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

Defined in Cardano.Api.Governance.Actions.ProposalProcedure

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

Defined in Cardano.Api.Governance.Actions.ProposalProcedure

Methods

toCBOR :: Proposal era -> Encoding Source #

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

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

IsShelleyBasedEra era => Eq (Proposal era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.ProposalProcedure

Methods

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

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

data AsType (Proposal era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.ProposalProcedure

createProposalProcedure Source #

Arguments

:: ShelleyBasedEra era 
-> Network 
-> Coin

Deposit

-> StakeCredential

Credential to return the deposit to.

-> GovernanceAction era 
-> Anchor StandardCrypto 
-> Proposal era 

createPreviousGovernanceActionId Source #

Arguments

:: forall era (r :: GovActionPurpose). EraCrypto (ShelleyLedgerEra era) ~ StandardCrypto 
=> TxId 
-> Word16

Governance action transation index

-> GovPurposeId r (ShelleyLedgerEra era) 

getAnchorDataFromGovernanceAction :: EraCrypto (ShelleyLedgerEra era) ~ StandardCrypto => GovAction (ShelleyLedgerEra era) -> Maybe (Anchor StandardCrypto) Source #

Get anchor data url and hash from a governance action. A return value of Nothing means that the governance action does not contain anchor data.