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

Complete EraScript hierarchy with missing classes #4316

Merged
merged 3 commits into from May 21, 2024

Conversation

teodanciu
Copy link
Contributor

Description

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated
  • When applicable, versions are updated in .cabal and CHANGELOG.md files according to the
    versioning process.
  • The version bounds in .cabal files for all affected packages are updated. If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)
  • All visible changes are prepended to the latest section of a CHANGELOG.md for the affected packages. New section is never added with the code changes. (See RELEASING.md)
  • Code is formatted with fourmolu (use scripts/fourmolize.sh)
  • Cabal files are formatted (use scripts/cabal-format.sh)
  • hie.yaml has been updated (use scripts/gen-hie.sh)
  • Self-reviewed the diff

@teodanciu teodanciu force-pushed the td/shelley-allegra-erascript branch 5 times, most recently from 608da35 to e9c20a6 Compare May 9, 2024 23:45
@teodanciu teodanciu force-pushed the td/shelley-allegra-erascript branch from e9c20a6 to 0118714 Compare May 10, 2024 14:50
@teodanciu teodanciu changed the title ShelleyEraScript, AllegraEraScript Complete EraScript hierarchy with missing classes May 10, 2024
@teodanciu teodanciu force-pushed the td/shelley-allegra-erascript branch from 3d3d1e6 to 1c13467 Compare May 10, 2024 17:12
Copy link
Contributor

@lehins lehins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking great!

eras/allegra/impl/src/Cardano/Ledger/Allegra/Scripts.hs Outdated Show resolved Hide resolved
eras/allegra/impl/src/Cardano/Ledger/Allegra/Scripts.hs Outdated Show resolved Hide resolved
eras/shelley/impl/src/Cardano/Ledger/Shelley/Scripts.hs Outdated Show resolved Hide resolved
eras/shelley/impl/src/Cardano/Ledger/Shelley/Scripts.hs Outdated Show resolved Hide resolved
eras/shelley/impl/src/Cardano/Ledger/Shelley/Scripts.hs Outdated Show resolved Hide resolved
@teodanciu teodanciu force-pushed the td/shelley-allegra-erascript branch 14 times, most recently from ba2b044 to f5a1251 Compare May 17, 2024 12:58
@teodanciu teodanciu marked this pull request as ready for review May 17, 2024 13:27
@teodanciu teodanciu force-pushed the td/shelley-allegra-erascript branch 3 times, most recently from 5818c4b to 3a2379f Compare May 20, 2024 10:14
Copy link
Contributor

@lehins lehins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are quite a few places in testing where redundant constraint was specified (eg. NativeScript era ~ Timelock era). Such constraints are only really needed for creating class instances or whenever we need to enforce equality, like in validateMultiSig

Aside from that it looks great! Thank you!

Replace era-specific patterns with new ones, constrained by the new
EraScript classes, that build and access `NativeScript` instead of
concrete types
@teodanciu teodanciu force-pushed the td/shelley-allegra-erascript branch from 3a2379f to eda7693 Compare May 21, 2024 01:17
@teodanciu teodanciu enabled auto-merge May 21, 2024 01:17
@teodanciu teodanciu merged commit 9fa49a2 into master May 21, 2024
123 of 130 checks passed
@teodanciu teodanciu deleted the td/shelley-allegra-erascript branch May 21, 2024 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants