Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to
cardano-ledger-binary
from cardano-binary
throughout le…
…dger: * Few additions to `cardano-ledger-binary`: * Addition of `dropCBOR` * Instances for 6-tuple and roundtrip tests for tuples and dropper * Move Helpers needed for Byron into the test-lib. * Add helper bindings for Byron and Shelley versions, since those are most common for now * Move `CBORGroup` into `cardano-ledger-binary` * Add `mkVersion64` * Add `NFData` and `NoThunks` for `Version` * Addition of `QC` that allows instance of `StatefulGen` for QuickCheck's `Gen`. * Improve `Arbitrary` by tapping into `StatefulGen` * Add helpers for creating hashes and `StdGen` from serialized data: `mkDummyHash` and `mkHashStdGen` * Add `hashWithEncoder` and `hashToCBOR` * Improve RounTrip testing and error reporting * Added `ToCBOR`/`FromCBOR` instances for `OutputVRF`, `CertifiedVRF`, `SlotNo`, `WithOrigin, `EpochNo`, `EpochSize`, `SystemStart` and `BlockN`. * Switched `pvMajor` in `ProtVer` to `Version` * Start using `_protocolVersion` from `PParams` wherever `Version` is needed and `PParams` are available. Derive `Version` from `era` in all other places by using `eraProtVerLow` and `eraProtVerHigh` * Created `translateEraThroughCBOR` for easy translation of types from one era to another
- Loading branch information
Showing
356 changed files
with
4,279 additions
and
5,959 deletions.
There are no files selected for viewing
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.