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

Make scripts needed part of utxo class #3019

Merged
merged 4 commits into from
Sep 15, 2022

Conversation

lehins
Copy link
Collaborator

@lehins lehins commented Sep 2, 2022

Add getScriptsNeeded to the EraUTxO:

This approach allows us to move mintedTxBodyF into ShelleyMA era, where it belongs. It also unifies the spec and code, where spec uses the same function scriptsNeeded in all eras. In order to achieve this we need a special type family ScriptsNeeded, since eras do not agree in the return type of the function.

Model testing framework is conflicting with this change and will require significant effort to make it work. At the team level we've already noticed that that framework is starting to bitrot and we agreed to remove it. This PR does that as well.

@lehins lehins force-pushed the lehins/make-scripts-needed-part-of-utxo-class branch from 6d6d9ea to e9d86a2 Compare September 6, 2022 21:07
@lehins lehins marked this pull request as ready for review September 7, 2022 14:29
@lehins lehins requested a review from JaredCorduan September 7, 2022 14:29
@lehins lehins force-pushed the lehins/make-scripts-needed-part-of-utxo-class branch from e9d86a2 to 8d28956 Compare September 12, 2022 12:18
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.

looks wonderful to me! I had just a couple questions/comments about when you chose to give newtype wrappers to things.

@lehins lehins force-pushed the lehins/make-scripts-needed-part-of-utxo-class branch 2 times, most recently from 49b84e2 to 703e78c Compare September 15, 2022 15:13
This approach allows us to move `mintedTxBodyF` into ShelleyMA era,
where it belongs. It also unifies the spec and code, where spec uses the
same function `scriptsNeeded` in all eras. In order to achieve this we
need a special type family `ScriptsNeeded`, since eras do not agree in
the return type of the function.
@lehins lehins force-pushed the lehins/make-scripts-needed-part-of-utxo-class branch from d6dc552 to dc29001 Compare September 15, 2022 16:31
@lehins lehins merged commit 4fc32a6 into master Sep 15, 2022
@iohk-bors iohk-bors bot deleted the lehins/make-scripts-needed-part-of-utxo-class branch September 15, 2022 19:08
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