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

Further improvements to Proposals #4025

Merged
merged 5 commits into from
Jan 31, 2024

Conversation

lehins
Copy link
Collaborator

@lehins lehins commented Jan 30, 2024

Description

Rename PForest to GovRelation and make it public:

  • Remove PrevGovActionIds in favor of direct usage of GovRelation
  • Abstract common usage pattern in withGovActionParent
  • Add another invariant verification to Proposal's

Rename legacy_transaction_output to pre_babbage_transaction_output in CDDL

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

@lehins lehins changed the title Further improvements to proposals Further improvements to Proposals Jan 30, 2024
@lehins lehins force-pushed the lehins/further-improvements-to-proposals branch from 07d5db8 to 05d73f4 Compare January 30, 2024 17:40
@lehins lehins marked this pull request as ready for review January 30, 2024 17:40
@lehins lehins force-pushed the lehins/further-improvements-to-proposals branch from 05d73f4 to f562788 Compare January 30, 2024 17:58
* Remove `PrevGovActionIds` in favor of direct usage of `GovRelation`
* Abstract common usage pattern in `withGovActionParent`
* Add another invariant verification to Proposal's
@lehins lehins force-pushed the lehins/further-improvements-to-proposals branch from f562788 to a29db41 Compare January 30, 2024 18:03
@lehins lehins requested review from aniketd and TimSheard January 30, 2024 18:03
This rename is useful to avoid misconception that pre-babbage TxOut
style will get deprcated. This could not be further from the truth,
since it is a more efficient representation and is used by default
when encoding simple TxOut. Therefore, there is no reason to call
it legacy.
Copy link
Contributor

@aniketd aniketd 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 so elegant. There is so much to learn about here. Wow! 🙇 🙌 💯

@lehins lehins merged commit 8ff857e into master Jan 31, 2024
10 of 25 checks passed
@neilmayhew neilmayhew deleted the lehins/further-improvements-to-proposals branch March 8, 2024 21:07
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.

2 participants