-
Notifications
You must be signed in to change notification settings - Fork 15
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 update proposal governance action #152
Conversation
6bcfba3
to
e49029c
Compare
Usage: cardano-cli conway governance action create-update-proposal | ||
[--protocol-major-version NATURAL | ||
--protocol-minor-version NATURAL] | ||
[--decentralization-parameter RATIONAL] |
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.
[--decentralization-parameter RATIONAL] <-- This no longer exists in Conway
[--protocol-major-version NATURAL | ||
--protocol-minor-version NATURAL] | ||
[--decentralization-parameter RATIONAL] | ||
[ --extra-entropy HEX |
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.
[--extra-entropy HEX | --reset-extra-entropy] No longer exists in Conway
) | ||
[--cost-model FILE] | ||
--out-file FILE | ||
|
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.
Does not seem to include protocol parameters introduced with Conway.
- governance voting thresholds (
$P1$ ,$P{2a}$ ,$P{2b}$ ,$P3$ ,$P4$ ,$P{5a}$ ,$P{5b}$ ,$P{5c}$ ,$P6$ ,$P7$ ,$Q1$ ,$Q{2b}$ ,$Q_4$ ) - constitutional committee term limits
- governance action expiration
- governance action deposit (govDeposit)
- DRep deposit amount (drepDeposit)
- DRep activity period (drepActivity)
- minimal constitutional committee size
- maximum term limit (in epochs) of the constitutional committee
e49029c
to
642516e
Compare
case constit of | ||
ConstitutionFromFile fp -> do | ||
cBs <- liftIO $ BS.readFile $ unFile fp | ||
_utf8EncodedText <- firstExceptT GovernanceActionsCmdNonUtf8EncodedConstitution . hoistEither $ Text.decodeUtf8' cBs |
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.
What's the reason this is unused?
Is it to verify the byte string contains valid text?
pGovernanceActionCreateUpdateProposal :: CardanoEra era -> Maybe (Parser (GovernanceActionCmds era)) | ||
pGovernanceActionCreateUpdateProposal = | ||
featureInEra Nothing (\cOn -> Just $ | ||
subParser "create-update-proposal" |
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.
This should be create-param-proposal., or something to similar to distinguish that it's an update to parameters.
@@ -0,0 +1,130 @@ | |||
Usage: cardano-cli conway governance action create-update-proposal |
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.
@Jimbo4350 create-update-proposal is a bit vague, it might be protocol-parameter-change
, protocol-parameter-proposal
, or even better, a shorter one pparam-change
which is closer to how it is called on the CIP.
subsumed by #170 |
Changelog
Context
Additional context for the PR goes here.
If the PR fixes a particular issue please provide a
link
to the issue.
Checklist
See Running tests for more details
.cabal
files are updatedhlint
. See.github/workflows/check-hlint.yml
to get thehlint
versionstylish-haskell
. See.github/workflows/stylish-haskell.yml
to get thestylish-haskell
versionghc-8.10.7
andghc-9.2.7