Skip to content

Conversation

@aniketd
Copy link
Contributor

@aniketd aniketd commented Nov 24, 2025

Description

New libraries named cddl for Mary through Babbage to implement typeclass-based cuddle definitions to generate .cddl files from.

Follow-up PRs should implement for Conway.

This is the second phase in our efforts to address #5194

NOTE

codegen on CI is expected to FAIL, and its diff is important to know exactly what has changed in the new implementation.

Checklist

  • Commits in meaningful sequence and with useful messages.
  • Tests added or updated when needed.
  • CHANGELOG.md files updated for packages with externally visible changes.
    NOTE: New section is never added with the code changes. (See RELEASING.md).
  • Versions updated in .cabal and CHANGELOG.md files when necessary, according to the
    versioning process.
  • Version bounds in .cabal files updated when necessary.
    NOTE: If bounds change in a cabal file, that package itself must have a version increase. (See RELEASING.md).
  • Code formatted (use scripts/fourmolize.sh).
  • Cabal files formatted (use scripts/cabal-format.sh).
  • CDDL files are up to date (use scripts/gen-cddl.sh)
  • hie.yaml updated (use scripts/gen-hie.sh).
  • Self-reviewed the diff.

* Export `Era` from `Cardano.Ledger.Huddle` so that later eras do not
need to depend on core directly; they can just import the previous era.
* Add smart-constructors for scripts-related rules and reorganise them.
Repeat the same additions as core and shelley for mary.

Update changelogs for shelley and allegra to mention `generate-cddl`.
Repeat the same additions as core, shelley, allegra and mary.
@aniketd aniketd force-pushed the aniketd/cddl-typeclass-mary branch from ae10611 to 3920e01 Compare November 25, 2025 10:16
Repeat the same additions as core, shelley, allegra, mary and alonzo.
@aniketd aniketd force-pushed the aniketd/cddl-typeclass-mary branch from 3920e01 to 3e363b1 Compare November 25, 2025 12:38
@aniketd aniketd marked this pull request as ready for review November 25, 2025 13:52
@aniketd aniketd requested a review from a team as a code owner November 25, 2025 13:52
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