cardano-ledger icon indicating copy to clipboard operation
cardano-ledger copied to clipboard

Ts salvage newtylespecs

Open TimSheard opened this issue 1 year ago • 0 comments

Description

Meant as a replacement for pull request #4314 Does several things

  1. Generalizes many of the instances in Test.Cardano.Ledger.Constrained.Conway.Instances to all Eras (not just Conway)
  2. Introduces two new types SimplePParams and SimplePPUpdate that are the used as the SimpleRep type across all Eras, makes it much easier to write specifications for PParams and PParramUpdates in all eras
  3. Writes specifications for all the Cardano types used in NewEpochState, EpochState, LedgerState, UTxOState etc.

Checklist

  • [ ] Commit sequence broadly makes sense and commits have useful messages
  • [ ] New tests are added if needed and existing tests are updated
  • [ ] 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)
  • [ ] 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)
  • [x] Code is formatted with fourmolu (use scripts/fourmolize.sh)
  • [x] Cabal files are formatted (use scripts/cabal-format.sh)
  • [x] hie.yaml has been updated (use scripts/gen-hie.sh)
  • [ ] Self-reviewed the diff

TimSheard avatar Aug 27 '24 21:08 TimSheard