-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add ProtocolParams data family and instances for each era * Add ProtocolTransitionParams data family and instances for each transition * ProtocolParams for cardano block * Record syntax for CardanoProtocolParams
- Loading branch information
Showing
22 changed files
with
624 additions
and
519 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...changelog.d/20230815_110046_joris_275_consolidate_protocolparams_across_eras.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!-- | ||
A new scriv changelog fragment. | ||
Uncomment the section that is right (remove the HTML comment wrapper). | ||
--> | ||
|
||
<!-- | ||
### Patch | ||
- A bullet item for the Patch category. | ||
--> | ||
|
||
### Non-Breaking | ||
|
||
- Add a `ProtocolTransitionParams` data family, and provide instances for | ||
transitions from Byron to Shelley and Shelley-based eras to Shelley-based | ||
eras. | ||
- Add a data instance of `ProtocolParams` for the Cardano block. | ||
- Provide a `CardanoProtocolParams` type synonym and associated pattern synonym | ||
(with record syntax). | ||
- Export all `ProtocolParams` and `ProtocolTransitionParams` instances from | ||
`Ouroboros.Consensus.Cardano` and `Ouroboros.Consensus.Cardano.Node`. | ||
|
||
### Breaking | ||
|
||
- Refactor `ProtocolParamsByron` to a data instance of `ProtocolParams`. | ||
- Refactor protocol parameters for Shelley eras (e.g, `ProtocolParamsAlonzo` and `ProtocolParamsBabbage`) to data instances of `ProtocolParams`. | ||
- Export all Shelley `ProtocolParams` data instances from `Ouroboros.Consensus.Shelley.Node`. | ||
- Remove the `ProtocolTransitionParamsShelleyBased` datatype in favour of | ||
`ProtocolTransitionParams`. | ||
- Make `protocolInfoCardano` require a `CardanoProtocolParams` type as its only | ||
argument, instead of a long list of arguments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.