Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- class AlonzoEraScript era ⇒ ConwayEraScript era where
- mkVotingPurpose ∷ f Word32 Voter → PlutusPurpose f era
- toVotingPurpose ∷ PlutusPurpose f era → Maybe (f Word32 Voter)
- 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)
- | ConwayMinting !(f Word32 PolicyID)
- | ConwayCertifying !(f Word32 (TxCert era))
- | ConwayRewarding !(f Word32 RewardAccount)
- | ConwayVoting !(f Word32 Voter)
- | ConwayProposing !(f Word32 (ProposalProcedure era))
- pattern VotingPurpose ∷ ConwayEraScript era ⇒ f Word32 Voter → 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 → PlutusPurpose f era Source #
toVotingPurpose ∷ PlutusPurpose f era → Maybe (f Word32 Voter) Source #
mkProposingPurpose ∷ f Word32 (ProposalProcedure era) → PlutusPurpose f era Source #
toProposingPurpose ∷ PlutusPurpose f era → Maybe (f Word32 (ProposalProcedure era)) Source #
Instances
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) | |
ConwayMinting !(f Word32 PolicyID) | |
ConwayCertifying !(f Word32 (TxCert era)) | |
ConwayRewarding !(f Word32 RewardAccount) | |
ConwayVoting !(f Word32 Voter) | |
ConwayProposing !(f Word32 (ProposalProcedure era)) |
Instances
pattern VotingPurpose ∷ ConwayEraScript era ⇒ f Word32 Voter → PlutusPurpose f era Source #
pattern ProposingPurpose ∷ ConwayEraScript era ⇒ f Word32 (ProposalProcedure era) → PlutusPurpose f era Source #