Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- class AlonzoEraScript era ⇒ ConwayEraScript era where
- mkVotingPurpose ∷ f Word32 (Voter (EraCrypto era)) → PlutusPurpose f era
- toVotingPurpose ∷ PlutusPurpose f era → Maybe (f Word32 (Voter (EraCrypto era)))
- mkProposingPurpose ∷ f Word32 (ProposalProcedure era) → PlutusPurpose f era
- toProposingPurpose ∷ PlutusPurpose f era → Maybe (f Word32 (ProposalProcedure era))
- data AlonzoScript era
- = TimelockScript !(Timelock era)
- | PlutusScript !(PlutusScript era)
- data family PlutusScript era
- isPlutusScript ∷ AlonzoEraScript era ⇒ Script era → Bool
- data ConwayPlutusPurpose f era
- = ConwaySpending !(f Word32 (TxIn (EraCrypto era)))
- | ConwayMinting !(f Word32 (PolicyID (EraCrypto era)))
- | ConwayCertifying !(f Word32 (TxCert era))
- | ConwayRewarding !(f Word32 (RewardAccount (EraCrypto era)))
- | ConwayVoting !(f Word32 (Voter (EraCrypto era)))
- | ConwayProposing !(f Word32 (ProposalProcedure era))
- pattern VotingPurpose ∷ ConwayEraScript era ⇒ f Word32 (Voter (EraCrypto era)) → PlutusPurpose f era
- pattern ProposingPurpose ∷ ConwayEraScript era ⇒ f Word32 (ProposalProcedure era) → PlutusPurpose f era
Documentation
class AlonzoEraScript era ⇒ ConwayEraScript era where Source #
mkVotingPurpose ∷ f Word32 (Voter (EraCrypto era)) → PlutusPurpose f era Source #
toVotingPurpose ∷ PlutusPurpose f era → Maybe (f Word32 (Voter (EraCrypto era))) Source #
mkProposingPurpose ∷ f Word32 (ProposalProcedure era) → PlutusPurpose f era Source #
toProposingPurpose ∷ PlutusPurpose f era → Maybe (f Word32 (ProposalProcedure era)) Source #
Instances
Crypto c ⇒ ConwayEraScript (ConwayEra c) Source # | |
Defined in Cardano.Ledger.Conway.Scripts mkVotingPurpose ∷ f Word32 (Voter (EraCrypto (ConwayEra c))) → PlutusPurpose f (ConwayEra c) Source # toVotingPurpose ∷ PlutusPurpose f (ConwayEra c) → Maybe (f Word32 (Voter (EraCrypto (ConwayEra c)))) Source # mkProposingPurpose ∷ f Word32 (ProposalProcedure (ConwayEra c)) → PlutusPurpose f (ConwayEra c) Source # toProposingPurpose ∷ PlutusPurpose f (ConwayEra c) → Maybe (f Word32 (ProposalProcedure (ConwayEra c))) Source # |
data AlonzoScript era Source #
Scripts in the Alonzo Era, Either a Timelock script or a Plutus script.
TimelockScript !(Timelock era) | |
PlutusScript !(PlutusScript era) |
Instances
data family PlutusScript era Source #
Instances
isPlutusScript ∷ AlonzoEraScript era ⇒ Script era → Bool Source #
data ConwayPlutusPurpose f era Source #
ConwaySpending !(f Word32 (TxIn (EraCrypto era))) | |
ConwayMinting !(f Word32 (PolicyID (EraCrypto era))) | |
ConwayCertifying !(f Word32 (TxCert era)) | |
ConwayRewarding !(f Word32 (RewardAccount (EraCrypto era))) | |
ConwayVoting !(f Word32 (Voter (EraCrypto era))) | |
ConwayProposing !(f Word32 (ProposalProcedure era)) |
Instances
pattern VotingPurpose ∷ ConwayEraScript era ⇒ f Word32 (Voter (EraCrypto era)) → PlutusPurpose f era Source #
pattern ProposingPurpose ∷ ConwayEraScript era ⇒ f Word32 (ProposalProcedure era) → PlutusPurpose f era Source #