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

Avoid using sequence of tuples, by adding GovActionId to GovActionState #3637

Merged
merged 3 commits into from
Aug 21, 2023

Conversation

Soupstraw
Copy link
Contributor

@Soupstraw Soupstraw commented Aug 11, 2023

Description

closes #3578

This PR fixes the above ticket in a different way. Namely, by adding govActionId to the GovActionState. This approach is very similar to how PoolParams are implemented.

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

@Soupstraw Soupstraw marked this pull request as ready for review August 11, 2023 10:36
@Soupstraw Soupstraw requested review from lehins, aniketd and teodanciu and removed request for lehins and aniketd August 11, 2023 10:36
@Soupstraw Soupstraw force-pushed the jj/govaction-datatype branch 2 times, most recently from 8d7762e to 90fc897 Compare August 15, 2023 09:25
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.

Very nice. Found some remnants of the previous Entry type, but otherwise it looks great!

Thank you.

eras/conway/impl/src/Cardano/Ledger/Conway/Governance.hs Outdated Show resolved Hide resolved
eras/conway/impl/CHANGELOG.md Outdated Show resolved Hide resolved
@Soupstraw Soupstraw force-pushed the jj/govaction-datatype branch 4 times, most recently from 4fa9fcf to 69a4a52 Compare August 18, 2023 13:19
Copy link
Contributor

@teodanciu teodanciu left a comment

Choose a reason for hiding this comment

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

Looks good to me (except you left an import of the inexistent insertGovActionEntry, in Governance)

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.

Looks great. Thank you!

@lehins lehins changed the title Added GovActionEntry datatype to improve strictness Avoid using sequence of tuples, by adding GovActionId to GovActionState Aug 21, 2023
to reflect breaking changes
@lehins lehins mentioned this pull request Aug 21, 2023
9 tasks
@lehins lehins enabled auto-merge (squash) August 21, 2023 15:02
@lehins lehins disabled auto-merge August 21, 2023 15:02
@lehins lehins enabled auto-merge (squash) August 21, 2023 15:03
@lehins lehins merged commit 4c6478f into master Aug 21, 2023
13 of 15 checks passed
@iohk-bors iohk-bors bot deleted the jj/govaction-datatype branch August 21, 2023 17:55

## 1.7.0.0

* Add `Network` validation for `ProposalProcedure` and `TreasuryWithdrawals` in GOV #3659
Copy link
Contributor

Choose a reason for hiding this comment

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

Did this line just get removed? Should it be part of 1.8 instead? @Soupstraw

Copy link
Contributor

Choose a reason for hiding this comment

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

Oops, looks like I removed it by mistake. Yes, I think it should be part of 1.8 because 1.7 was released at (bbdfc3f) before this commit . Sorry!

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.

Store GovernanceActions in a strict data structure
4 participants