-
Notifications
You must be signed in to change notification settings - Fork 157
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
Address issues in auto-generated CDDL specification #4553
Merged
Commits on Sep 29, 2024
-
Move extras and crypto types to core CDDL
Now that the CDDL is defined with Cuddle, we can begin to properly modularise it. As a first step, we move the common crypto and utility types into the core package.
Configuration menu - View commit details
-
Copy full SHA for bc64e37 - Browse repository at this point
Copy the full SHA bc64e37View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17cfe4c - Browse repository at this point
Copy the full SHA 17cfe4cView commit details -
Generate Shelley CDDL using Huddle.
- Switch existing tests to using the generated CDDL - Add additional Huddle based tests for Shelley types - Add a tool to regenerate the Shelley CDDL from Huddle - Move additional core types to the core CDDL - Make a few fixes in the Shelley Huddle spec There is one unusual thing here: the size bound on the max block header size in the protocol param update. This does not reflect the original CDDL, but it is consistent with the FromCBOR instance and the underlying data type in PParams. I can only assume that the CDDL generator wasn't exploring the whole range and thus never found this error.
Configuration menu - View commit details
-
Copy full SHA for 3da9e87 - Browse repository at this point
Copy the full SHA 3da9e87View commit details -
Use common CDDL definitions from Shelley.
Now that Shelley is defined using Huddle, we can rely on the relevant parts from Conway.
Configuration menu - View commit details
-
Copy full SHA for 9ce5427 - Browse repository at this point
Copy the full SHA 9ce5427View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7bd5bbc - Browse repository at this point
Copy the full SHA 7bd5bbcView commit details -
Configuration menu - View commit details
-
Copy full SHA for b57eddf - Browse repository at this point
Copy the full SHA b57eddfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 75d85e8 - Browse repository at this point
Copy the full SHA 75d85e8View commit details -
Reintroduce detailed comments in CDDL.
We use 'here' QuasiQuotes to make handling multiline comments somewhat less painful.
Configuration menu - View commit details
-
Copy full SHA for 1045f3b - Browse repository at this point
Copy the full SHA 1045f3bView commit details -
This addresses issue #4535. The first rule in a CDDL file is taken to be the root element.
Configuration menu - View commit details
-
Copy full SHA for 127a892 - Browse repository at this point
Copy the full SHA 127a892View commit details -
Configuration menu - View commit details
-
Copy full SHA for 306f3ee - Browse repository at this point
Copy the full SHA 306f3eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 414255f - Browse repository at this point
Copy the full SHA 414255fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bcc3f7 - Browse repository at this point
Copy the full SHA 9bcc3f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 31ac591 - Browse repository at this point
Copy the full SHA 31ac591View commit details -
Configuration menu - View commit details
-
Copy full SHA for 944e79f - Browse repository at this point
Copy the full SHA 944e79fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8aca196 - Browse repository at this point
Copy the full SHA 8aca196View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce9acf1 - Browse repository at this point
Copy the full SHA ce9acf1View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.