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

Address issues in auto-generated CDDL specification #4553

Merged
merged 16 commits into from
Sep 29, 2024
Merged

Address issues in auto-generated CDDL specification #4553

merged 16 commits into from
Sep 29, 2024

Commits on Sep 29, 2024

  1. 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.
    nc6 authored and lehins committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    bc64e37 View commit details
    Browse the repository at this point in the history
  2. Define Shelley CDDL via Huddle

    nc6 authored and lehins committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    17cfe4c View commit details
    Browse the repository at this point in the history
  3. 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.
    nc6 authored and lehins committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    3da9e87 View commit details
    Browse the repository at this point in the history
  4. Use common CDDL definitions from Shelley.

    Now that Shelley is defined using Huddle, we can
    rely on the relevant parts from Conway.
    nc6 authored and lehins committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    9ce5427 View commit details
    Browse the repository at this point in the history
  5. Fourmolu

    nc6 authored and lehins committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    7bd5bbc View commit details
    Browse the repository at this point in the history
  6. Update gen-cddl script to handle multiple eras

    nc6 authored and lehins committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    b57eddf View commit details
    Browse the repository at this point in the history
  7. Update hie file.

    nc6 authored and lehins committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    75d85e8 View commit details
    Browse the repository at this point in the history
  8. Reintroduce detailed comments in CDDL.

    We use 'here' QuasiQuotes to make handling
    multiline comments somewhat less painful.
    nc6 authored and lehins committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    1045f3b View commit details
    Browse the repository at this point in the history
  9. Add a CDDL root element.

    This addresses issue #4535. The first rule in a
    CDDL file is taken to be the root element.
    nc6 authored and lehins committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    127a892 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    306f3ee View commit details
    Browse the repository at this point in the history
  11. Add Changelog entries and version bumps.

    nc6 authored and lehins committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    414255f View commit details
    Browse the repository at this point in the history
  12. Update cuddle to gain leading commas.

    nc6 authored and lehins committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    9bcc3f7 View commit details
    Browse the repository at this point in the history
  13. Clear cabal cache on CI

    lehins committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    31ac591 View commit details
    Browse the repository at this point in the history
  14. Update CHaP cabal index and flake

    teodanciu authored and lehins committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    944e79f View commit details
    Browse the repository at this point in the history
  15. Fix cuddle dependency version

    teodanciu authored and lehins committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    8aca196 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    ce9acf1 View commit details
    Browse the repository at this point in the history