-
Notifications
You must be signed in to change notification settings - Fork 23
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
Experimental API: remove redundant type families and functions #625
Experimental API: remove redundant type families and functions #625
Conversation
a58f105
to
32d7c1e
Compare
32d7c1e
to
7e745d6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to default treasury value is correct. I let @Jimbo4350 review the experimental API changes 👍
type family ApiEraToLedgerEra era = (r :: Type) | r -> era where | ||
ApiEraToLedgerEra Api.BabbageEra = Ledger.Babbage | ||
ApiEraToLedgerEra Api.ConwayEra = Ledger.Conway | ||
data Some (f :: Type -> Type) where |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you write a comment giving some intuition what this is used for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a comment explaining usage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is this used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a replacement for EraInEon
. Used here:
- https://github.com/IntersectMBO/cardano-cli/pull/878/files#diff-89464cff121cfd789fd146f23dce41a415142e2370d97e3e913a88f688b43ef8R44
- https://github.com/IntersectMBO/cardano-cli/pull/878/files#diff-37c72451a331a0797901f0cd46ddfce5d4ca332477a9e0ddbb88c69e4f445bc7R1373
- https://github.com/IntersectMBO/cardano-cli/pull/878/files#diff-cedbf3efe1299cbdb293bc000a0de89bbd3355dda2d37d0fb887934a479b49beL57
7e745d6
to
c376f6c
Compare
c376f6c
to
a9cabb0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work. I'm not a fan of the name of Some
but it's minor.
Changelog
Context
Removes redundant type families - we don't need them for marking the experimental API eras and the old eras.
Fixes the default value for current treasury value in transaction building.
Checklist