Skip to content

Commit a4e098a

Browse files
authored
Merge pull request #1286 from IntersectMBO/jordan/final-deprecate-certificate
Deprecate certificate
2 parents e0bf779 + fc6b6b2 commit a4e098a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+498
-509
lines changed

cabal.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repository cardano-haskell-packages
1414
-- you need to run if you change them
1515
index-state:
1616
, hackage.haskell.org 2025-11-05T09:40:54Z
17-
, cardano-haskell-packages 2025-11-05T10:16:35Z
17+
, cardano-haskell-packages 2025-11-18T18:44:49Z
1818

1919
packages:
2020
cardano-cli

cardano-cli/cardano-cli.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ library
241241
binary,
242242
bytestring,
243243
canonical-json,
244-
cardano-api ^>=10.19.1,
244+
cardano-api ^>=10.20,
245245
cardano-binary,
246246
cardano-crypto,
247247
cardano-crypto-class ^>=2.2,
@@ -387,6 +387,7 @@ test-suite cardano-cli-test
387387
build-tool-depends: tasty-discover:tasty-discover
388388
other-modules:
389389
Test.Cli.AddCostModels
390+
Test.Cli.Certificates.GenesisKeyDelegationCertificate
390391
Test.Cli.Certificates.StakePool
391392
Test.Cli.CheckNodeConfiguration
392393
Test.Cli.Compatible.StakeAddress.DelegationCertificate
@@ -507,7 +508,6 @@ test-suite cardano-cli-golden
507508
Test.Golden.Shelley.StakeAddress.KeyHash
508509
Test.Golden.Shelley.StakeAddress.RegistrationCertificate
509510
Test.Golden.Shelley.StakePool.RegistrationCertificate
510-
Test.Golden.Shelley.TextEnvelope.Certificates.GenesisKeyDelegation
511511
Test.Golden.Shelley.TextEnvelope.Certificates.Operational
512512
Test.Golden.Shelley.TextEnvelope.Keys.ExtendedPaymentKeys
513513
Test.Golden.Shelley.TextEnvelope.Keys.GenesisDelegateKeys

cardano-cli/src/Cardano/CLI/Compatible/Governance/Command.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ data CompatibleGovernanceCmds era
3636
Coin
3737
(File () Out)
3838
| CompatibleGenesisKeyDelegationCertificate
39-
(ShelleyToBabbageEra era)
4039
(VerificationKeyOrHashOrFile GenesisKey)
4140
(VerificationKeyOrHashOrFile GenesisDelegateKey)
4241
(VerificationKeyOrHashOrFile VrfKey)

cardano-cli/src/Cardano/CLI/Compatible/Governance/Option.hs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pCompatibleGovernanceCmds sbe =
4343
]
4444
)
4545
[ pCreateMirCertificatesCmds sbe
46-
, pGovernanceGenesisKeyDelegationCertificate sbe
46+
, pGovernanceGenesisKeyDelegationCertificate
4747
, fmap CreateCompatibleProtocolParametersUpdateCmd <$> pGovernanceActionCmds sbe
4848
]
4949
)
@@ -119,19 +119,16 @@ pUpdateProtocolParametersPreConway shelleyToBab =
119119
<*> pProtocolParametersUpdateGenesisKeys
120120

121121
pGovernanceGenesisKeyDelegationCertificate
122-
:: ()
123-
=> ShelleyBasedEra era
124-
-> Maybe (Parser (CompatibleGovernanceCmds era))
125-
pGovernanceGenesisKeyDelegationCertificate sbe = do
126-
w <- forShelleyBasedEraMaybeEon sbe
122+
:: Maybe (Parser (CompatibleGovernanceCmds era))
123+
pGovernanceGenesisKeyDelegationCertificate = do
127124
pure $
128125
Opt.hsubparser $
129126
commandWithMetavar "create-genesis-key-delegation-certificate" $
130-
Opt.info (parser w) $
127+
Opt.info parser $
131128
Opt.progDesc "Create a genesis key delegation certificate"
132129
where
133-
parser w =
134-
CompatibleGenesisKeyDelegationCertificate w
130+
parser =
131+
CompatibleGenesisKeyDelegationCertificate
135132
<$> pGenesisVerificationKeyOrHashOrFile
136133
<*> pGenesisDelegateVerificationKeyOrHashOrFile
137134
<*> pVrfVerificationKeyOrHashOrFile

cardano-cli/src/Cardano/CLI/Compatible/Governance/Run.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ import Cardano.CLI.Type.Error.GovernanceActionsError
2525

2626
import Data.Typeable (Typeable)
2727

28-
runCompatibleGovernanceCmds :: Typeable era => CompatibleGovernanceCmds era -> CIO e ()
28+
runCompatibleGovernanceCmds :: CompatibleGovernanceCmds era -> CIO e ()
2929
runCompatibleGovernanceCmds = \case
3030
CreateCompatibleProtocolParametersUpdateCmd cmd ->
3131
runCompatibleGovernanceActionCreateProtocolParametersUpdateCmd cmd
3232
LatestCompatibleGovernanceCmds cmd -> runGovernanceCmds cmd
33-
CompatibleGenesisKeyDelegationCertificate sta genVk genDelegVk vrfVk out ->
34-
runGovernanceGenesisKeyDelegationCertificate sta genVk genDelegVk vrfVk out
33+
CompatibleGenesisKeyDelegationCertificate genVk genDelegVk vrfVk out ->
34+
runGovernanceGenesisKeyDelegationCertificate genVk genDelegVk vrfVk out
3535
CompatibleCreateMirCertificateStakeAddressesCmd w mirpot vKeys rewards out ->
3636
runGovernanceMIRCertificatePayStakeAddrs w mirpot vKeys rewards out
3737
CompatibleCreateMirCertificateTransferToReservesCmd w ll oFp ->

0 commit comments

Comments
 (0)