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

Add CDDL proptests for Conway #3226

Merged
merged 2 commits into from
Jan 4, 2023
Merged

Conversation

aniketd
Copy link
Contributor

@aniketd aniketd commented Dec 28, 2022

Description

Closes #3155

Checklist

  • Commit sequence broadly makes sense
  • Commits have useful messages
  • New tests are added if needed and existing tests are updated
  • Any changes are noted in the changelog
  • Code is formatted with ormolu (which can be run with scripts/ormolise.sh
  • Self-reviewed the diff

@aniketd aniketd force-pushed the aniketd/conway-cddl-proptests branch 3 times, most recently from b7724f6 to 2766de5 Compare January 3, 2023 18:21
@aniketd aniketd marked this pull request as ready for review January 3, 2023 18:26
CHANGELOG.md Outdated Show resolved Hide resolved
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 great! thank you for fixing up the conway serialization code, and making the CDDL file look nice along the way!

@aniketd aniketd force-pushed the aniketd/conway-cddl-proptests branch from ae73a27 to 2766de5 Compare January 3, 2023 19:19
@aniketd aniketd force-pushed the aniketd/conway-cddl-proptests branch 2 times, most recently from f7dfe59 to 8ced4cf Compare January 4, 2023 14:38
@aniketd aniketd requested a review from Soupstraw January 4, 2023 14:42
Copy link
Collaborator

@lehins lehins left a comment

Choose a reason for hiding this comment

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

It is very unusual for Cardano.Ledger.Binary.Coders interface to need a change, so if you feel like you need to do that, more than likely you are doing something wrong.

Other than that it looks good.

FYI you could also use the new decodeBoundedEnum and encodeEnum for To/FromCBOR instances for Language

@aniketd aniketd force-pushed the aniketd/conway-cddl-proptests branch from 8ced4cf to 415ba10 Compare January 4, 2023 14:53
@aniketd aniketd force-pushed the aniketd/conway-cddl-proptests branch from 415ba10 to dea517c Compare January 4, 2023 15:20
@aniketd aniketd requested a review from lehins January 4, 2023 15:22
Copy link
Collaborator

@lehins lehins left a comment

Choose a reason for hiding this comment

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

Looks great!

@aniketd aniketd merged commit 71c31ac into master Jan 4, 2023
@iohk-bors iohk-bors bot deleted the aniketd/conway-cddl-proptests branch January 4, 2023 21:06
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.

property tests for conway CDDL spec
4 participants