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

Added new plutus-preprocessor package #2328

Merged
merged 1 commit into from
Jun 11, 2021
Merged

Conversation

TimSheard
Copy link
Contributor

The 'main' function in this package, generates and then writes it to
'cardano-ledger-specs/alonzo/test/lib/Test/Cardano/Ledger/Alonzo/PlutusScripts.hs'
The source of the generated code is the file:
'cardano-ledger-specs/plutus-preprocessor/src/PlutusScripts.hs'
which defines some haskell code that specifies a bunch of plutus scripts.
When the generated file is compiled it exports a bunch of Alonzo era scripts that are plutus scripts.
Compiling that file does not have any dependency on the plutus-plugin.
Instead this package 'plutus-preproccssor' has that dependency, but one does not have
to compile this package to build the system.
If the plutus package changes, we will have to regenerate the PlutusScripts.hs file.
To regenerate PlutusScripts.hs, on a machine that can depend upon plutus=plugin, then
cd into the plutus-preprocessor directory and type 'cabal run'

plutus-preprocessor/src/main.hs generates the file
alonzo/test/lib/Test/Cardano/Ledger/Alonzo/PlutusScripts.hs
This file is imported into AlonzoEraGen and the Examples files.
This completley removes the plutus-plugin dependency from Alonzo.
Copy link
Contributor

@JaredCorduan JaredCorduan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @TimSheard ! looks good to me

@JaredCorduan JaredCorduan merged commit c53196f into master Jun 11, 2021
@iohk-bors iohk-bors bot deleted the ts-remove-plutusplugin branch June 11, 2021 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants