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

Serialisation generators for Mary/Allegra #1966

Merged
merged 1 commit into from
Nov 7, 2020

Commits on Nov 6, 2020

  1. Serialisation generators for Mary/Allegra

    Resolves CAD-1845
    
    * Extract EraIndepGenerators from the ShelleyEra serialisation generators so that we can re-use EraIndep as a base for ShelleyMAEra serialisation generators
    * Specialise Shelley Era generators to ShelleyEra (rather than just the `ShelleyTest` constraint) - otherwise we'd have Overlapping Instances between Shelley/MA
    * ShelleyMAEra generators are fixed to MaryEra C_Crypto and AllegraEra C_Crypto
    
    Note: To import Shelley + ShelleyMA arb instances, you need
    
    ```
    import Test.Shelley.Spec.Ledger.Serialisation.EraIndepGenerators () -- shelley-spec-ledger-test
    import Test.Shelley.Spec.Ledger.Serialisation.Generators ()         -- shelley-spec-ledger-test
    import Test.Cardano.Ledger.ShelleyMA.Serialisation.Generators ()    -- cardano-ledger-shelley-ma-test
    ```
    uroboros committed Nov 6, 2020
    Configuration menu
    Copy the full SHA
    ec12be7 View commit details
    Browse the repository at this point in the history