Skip to content

Move protocol parameters update code #1250

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Jimbo4350
Copy link
Contributor

Changelog

- description: |
    Move protocol parameters update code
  type:
  - refactoring   

Context

Additional context for the PR goes here. If the PR fixes a particular issue please provide a link to the issue.

How to trust this PR

Highlight important bits of the PR that will make the review faster. If there are commands the reviewer can run to observe the new behavior, describe them.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. See Running tests for more details
  • Self-reviewed the diff

@Jimbo4350 Jimbo4350 force-pushed the jordan/move-protocol-parameters-update branch from 8586356 to bd65454 Compare July 15, 2025 19:28
ShelleyBasedEraBabbage ->
shelleyToBabbageProtocolParametersUpdate sbe eraBasedPParams'
ShelleyBasedEraConway -> conwayProtocolParametersUpdate sbe eraBasedPParams'
where

Check notice

Code scanning / HLint

Redundant where Note

cardano-cli/src/Cardano/CLI/Compatible/Governance/Run.hs:61:2-6: Suggestion: Redundant where
  
Found:
  where
  
Perhaps you should remove it.
Comment on lines 703 to 707
[ (,mSwit)
<$> ( fmap (Exp.convertToNewCertificate Exp.useEra) $
fromEitherIOCli $
readFileTextEnvelope (File certFile)
)

Check notice

Code scanning / HLint

Move brackets to avoid $ Note

cardano-cli/src/Cardano/CLI/EraBased/Transaction/Run.hs:(678,11)-(682,17): Suggestion: Move brackets to avoid $
  
Found:
  (, mSwit)
    <$>
      (fmap (Exp.convertToNewCertificate Exp.useEra)
         $ fromEitherIOCli $ readFileTextEnvelope (File certFile))
  
Perhaps:
  (, mSwit)
    <$>
      fmap
        (Exp.convertToNewCertificate Exp.useEra)
        (fromEitherIOCli $ readFileTextEnvelope (File certFile))
@Jimbo4350 Jimbo4350 force-pushed the jordan/move-protocol-parameters-update branch from bd65454 to 0d19b55 Compare July 15, 2025 19:40
@Jimbo4350 Jimbo4350 marked this pull request as ready for review July 15, 2025 20:00
@Jimbo4350 Jimbo4350 force-pushed the jordan/move-protocol-parameters-update branch 2 times, most recently from 4e0a38f to 240df0c Compare July 18, 2025 17:26
`Cardano.CLI.Compatible.Governance.Types`
The compatible protocol parameter update command is compatible for all
eras whilst the (poorly named) "era based" protocol parameter command is
now parameterized on `Era era`
…CompatibleGovernanceActionCreateProtocolParametersUpdateCmd`Factor out relevant eons
@Jimbo4350 Jimbo4350 force-pushed the jordan/move-protocol-parameters-update branch from 240df0c to 30a9b29 Compare July 18, 2025 19:18
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.

1 participant