Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data ProtocolVersion = ProtocolVersion {}
- shelleyPV :: ProtocolVersion
- allegraPV :: ProtocolVersion
- maryPV :: ProtocolVersion
- alonzoPV :: ProtocolVersion
- vasilPV :: ProtocolVersion
- changPV :: ProtocolVersion
- data LedgerPlutusVersion
- languageIntroducedIn :: LedgerPlutusVersion -> ProtocolVersion
- languagesAvailableIn :: ProtocolVersion -> Set LedgerPlutusVersion
- builtinsIntroducedIn :: Map (LedgerPlutusVersion, ProtocolVersion) (Set DefaultFun)
- builtinsAvailableIn :: LedgerPlutusVersion -> ProtocolVersion -> Set DefaultFun
Documentation
data ProtocolVersion Source #
This represents the Cardano protocol version, with its major and minor components. This relies on careful understanding between us and the ledger as to what this means.
Instances
data LedgerPlutusVersion Source #
The plutus language version as seen from the ledger's side. Note: the ordering of constructors matters for deriving Ord
Instances
languageIntroducedIn :: LedgerPlutusVersion -> ProtocolVersion Source #
Query the protocol version that a specific ledger plutus version was first introduced in.
Introduction
in this context means the enablement/allowance of scripts of that language version to be executed on-chain.
languagesAvailableIn :: ProtocolVersion -> Set LedgerPlutusVersion Source #
Given a protocol version return a set of all available plutus languages that are enabled/allowed to run. Assumes that languages once introduced/enabled, will never be disabled in the future.
builtinsIntroducedIn :: Map (LedgerPlutusVersion, ProtocolVersion) (Set DefaultFun) Source #
A map indicating which builtin functions were introduced in which ProtocolVersion
. Each builtin function should appear at most once.
This *must* be updated when new builtins are added. See Note [New builtins and protocol versions]
builtinsAvailableIn :: LedgerPlutusVersion -> ProtocolVersion -> Set DefaultFun Source #
Which builtin functions are available in the given ProtocolVersion
?
See Note [New builtins and protocol versions]