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

Specify numeric ranges explicitly in conway cddl files #4357

Merged
merged 7 commits into from
Jun 5, 2024

Conversation

teodanciu
Copy link
Contributor

@teodanciu teodanciu commented May 24, 2024

and name some common types.

  • Word16 -> uint .size 2
  • Word32 -> uint .size 4
  • Word64 -> uint .size 8

Define: epoch_interval, slot_no, block_no

Resolves #4296 #4360

Description

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated
  • When applicable, versions are updated in .cabal and CHANGELOG.md files according to the
    versioning process.
  • The version bounds in .cabal files for all affected packages are updated. If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)
  • All visible changes are prepended to the latest section of a CHANGELOG.md for the affected packages. New section is never added with the code changes. (See RELEASING.md)
  • Code is formatted with fourmolu (use scripts/fourmolize.sh)
  • Cabal files are formatted (use scripts/cabal-format.sh)
  • hie.yaml has been updated (use scripts/gen-hie.sh)
  • Self-reviewed the diff

Copy link
Contributor

@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.

I realized that there are a couple changes to actual implementation that we need

eras/conway/impl/cddl-files/conway.cddl Outdated Show resolved Hide resolved
eras/conway/impl/cddl-files/conway.cddl Outdated Show resolved Hide resolved
eras/conway/impl/cddl-files/conway.cddl Outdated Show resolved Hide resolved
@teodanciu teodanciu force-pushed the td/improve-conway-cbor branch 12 times, most recently from 66d7813 to e5b55d8 Compare June 3, 2024 16:27
Copy link
Contributor

@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.

Perfect!
Thank you!

eras/conway/impl/cddl-files/conway.cddl Outdated Show resolved Hide resolved
eras/conway/impl/src/Cardano/Ledger/Conway/PParams.hs Outdated Show resolved Hide resolved
eras/conway/impl/src/Cardano/Ledger/Conway/PParams.hs Outdated Show resolved Hide resolved
libs/cardano-ledger-core/src/Cardano/Ledger/BaseTypes.hs Outdated Show resolved Hide resolved
libs/cardano-ledger-core/src/Cardano/Ledger/BaseTypes.hs Outdated Show resolved Hide resolved
@teodanciu teodanciu enabled auto-merge June 5, 2024 13:32
@teodanciu teodanciu merged commit efc9e88 into master Jun 5, 2024
125 of 127 checks passed
@teodanciu teodanciu deleted the td/improve-conway-cbor branch June 5, 2024 14:21
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.

Specify numeric ranges explicitly in CDDL
3 participants