-
Notifications
You must be signed in to change notification settings - Fork 6
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
Update ADR-4: Replace CurrentEra & UpcomingEra with concrete era names #51
base: main
Are you sure you want to change the base?
Update ADR-4: Replace CurrentEra & UpcomingEra with concrete era names #51
Conversation
7019aa0
to
d26356e
Compare
d26356e
to
9f6be99
Compare
|
||
This deprecation will happen only after the hardfork has been successful. There should be no need for consumers of the api to need the prior era's specific functionality. If users for some reason want this, we can direct them to use the ledger's api directly. | ||
|
||
## Downsides |
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.
I don't think this description of downsides is relevant anymore, so I've removed it: the dead code won't be an issue anymore.
The new api should be created adjacant to the existing one. | ||
We then slowly replace the use of the existing api in cardano-api, eventually deprecating the "old" api. | ||
|
||
With respect to cardano-cli, we should introduce top level `current-era` and `upcoming-era` commands. |
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.
Thinking about this again we should just use the era. Why? These names would have the same problem we just ran into with cardano-cli latest
.
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.
I think I agree with you. On the era boundary this will break most of the scripts relying on the latest
being a particular era.
Changes:
CurrentEra
andUpcomingEra
with the concrete eras names.Rendered