Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Plutus V1 in Conway #323

Merged
merged 2 commits into from
Oct 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions cardano-api/internal/Cardano/Api/Script.hs
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,9 @@ scriptLanguageSupportedInEra era lang =
(BabbageEra, PlutusScriptLanguage PlutusScriptV2) ->
Just PlutusScriptV2InBabbage

(ConwayEra, PlutusScriptLanguage PlutusScriptV1) ->
Just PlutusScriptV1InConway

(ConwayEra, PlutusScriptLanguage PlutusScriptV2) ->
Just PlutusScriptV2InConway

Expand Down Expand Up @@ -639,21 +642,19 @@ eraOfScriptLanguageInEra :: ScriptLanguageInEra lang era
eraOfScriptLanguageInEra langInEra =
case langInEra of
SimpleScriptInShelley -> ShelleyBasedEraShelley

SimpleScriptInAllegra -> ShelleyBasedEraAllegra

SimpleScriptInMary -> ShelleyBasedEraMary

SimpleScriptInAlonzo -> ShelleyBasedEraAlonzo
PlutusScriptV1InAlonzo -> ShelleyBasedEraAlonzo

SimpleScriptInBabbage -> ShelleyBasedEraBabbage
SimpleScriptInConway -> ShelleyBasedEraConway

PlutusScriptV1InAlonzo -> ShelleyBasedEraAlonzo
PlutusScriptV1InBabbage -> ShelleyBasedEraBabbage
PlutusScriptV1InConway -> ShelleyBasedEraConway

PlutusScriptV2InBabbage -> ShelleyBasedEraBabbage
PlutusScriptV2InConway -> ShelleyBasedEraConway

PlutusScriptV3InConway -> ShelleyBasedEraConway

-- | Given a target era and a script in some language, check if the language is
Expand Down