-
Notifications
You must be signed in to change notification settings - Fork 156
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
Add Script to Constitution #3556
Conversation
Please especially review the CDDL change. I think I may have got it wrong. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea for creating a separate Constritution
type and reusing in all places in this PR.
Note that my comments about serialization will have to travel to the serialization of the Constitution
type
eras/conway/impl/src/Cardano/Ledger/Conway/Governance/Procedures.hs
Outdated
Show resolved
Hide resolved
eras/conway/impl/src/Cardano/Ledger/Conway/Governance/Procedures.hs
Outdated
Show resolved
Hide resolved
0deef64
to
9454088
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple more minor changes is needed
eras/conway/impl/src/Cardano/Ledger/Conway/Governance/Procedures.hs
Outdated
Show resolved
Hide resolved
eras/conway/impl/src/Cardano/Ledger/Conway/Governance/Procedures.hs
Outdated
Show resolved
Hide resolved
eras/conway/impl/src/Cardano/Ledger/Conway/Governance/Procedures.hs
Outdated
Show resolved
Hide resolved
87655d5
to
15fa2db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. A few changes are needed however.
eras/shelley/impl/src/Cardano/Ledger/Shelley/RewardProvenance.hs
Outdated
Show resolved
Hide resolved
15fa2db
to
c756014
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some more feedback, as we discussed on a call. It is better to just introduce a ConstituitonData
instead of using the Constitution era
as the phantom type for the Hash
c756014
to
8c57115
Compare
1fd9a52
to
e907276
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work!
Also, - Switch phantom type in constitution hash from ByteString to ConstitionData - Move the Constitution to Shelley.Governance - Adopt some orphan Default instances
e907276
to
e2bf392
Compare
Description
Resolves #3532
Checklist
.cabal
andCHANGELOG.md
files according to theversioning process.
.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)CHANGELOG.md
for the affected packages. New section is never added with the code changes. (See RELEASING.md)fourmolu
(usescripts/fourmolize.sh
)scripts/cabal-format.sh
)hie.yaml
has been updated (usescripts/gen-hie.sh
)