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

Move EpochInterval to cardano-base #4087

Merged
merged 3 commits into from
Feb 20, 2024
Merged

Conversation

Lucsanszky
Copy link
Contributor

@Lucsanszky Lucsanszky commented Feb 16, 2024

Description

Resolves #3944

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

@Lucsanszky
Copy link
Contributor Author

Quickly fixed the things that broke due to the release of cardano-slotting-0.2.0.0 but I still need to go over the code and do some cleanup, hence the PR is still a draft.

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.

Some changes to version bounds are needed, but otherwise looks great

@Lucsanszky Lucsanszky force-pushed the lucsanszky/move-epochinterval branch 3 times, most recently from b97e379 to 13414a0 Compare February 20, 2024 02:57
@Lucsanszky Lucsanszky marked this pull request as ready for review February 20, 2024 02:57
The `cardano-slotting` package removed the numeric instances for
`EpochNo` and `EpochSize` from the main library for safety reasons.
See: IntersectMBO/cardano-base#456
Those instances are now provided as orphans from the `cardano-slotting`
`testlib` for testing convenience. However, everywhere else the code is
updated to comply with the above breaking changes.
Both `EpochInterval` and `addEpochInterval` was moved to `cardano-slotting`
in `cardano-base` as part of IntersectMBO/cardano-base#456.
Import them from there and re-export them via `BaseTypes`.
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.

Great job, Daniel!

@Lucsanszky Lucsanszky merged commit 9e0031e into master Feb 20, 2024
11 of 13 checks passed
@neilmayhew neilmayhew deleted the lucsanszky/move-epochinterval branch March 8, 2024 21:07
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.

Move EpochInterval to cardano-base
3 participants