diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Commands/Governance/DRep.hs b/cardano-cli/src/Cardano/CLI/EraBased/Commands/Governance/DRep.hs index c67708b3a3..fe4886dc56 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Commands/Governance/DRep.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Commands/Governance/DRep.hs @@ -14,11 +14,7 @@ import Cardano.CLI.Types.Key import Data.Text (Text) data GovernanceDRepCmds era - = GovernanceDRepDelegationCertificateCmd - StakeIdentifier - AnyDelegationTarget - (File () Out) - | GovernanceDRepGenerateKeyCmd + = GovernanceDRepGenerateKeyCmd (ConwayEraOnwards era) (File (VerificationKey ()) Out) (File (SigningKey ()) Out) @@ -35,8 +31,6 @@ renderGovernanceDRepCmds :: () => GovernanceDRepCmds era -> Text renderGovernanceDRepCmds = \case - GovernanceDRepDelegationCertificateCmd {} -> - "governance drep delegation-certificate" GovernanceDRepGenerateKeyCmd{} -> "governance drep key-gen" GovernanceDRepIdCmd {} -> diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/DRep.hs b/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/DRep.hs index 632e8e14e3..455aa47886 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/DRep.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/DRep.hs @@ -36,7 +36,6 @@ pGovernanceDRepCmds envCli era = ) [ pGovernanceDRepKeyGenCmd era , pGovernanceDRepKeyIdCmd era - , pDelegationCertificateCmd envCli era , pRegistrationCertificateCmd envCli era ] @@ -133,66 +132,3 @@ instance FeatureInEra AnyEraDecider where AlonzoEra -> yes $ AnyEraDeciderShelleyToBabbage ShelleyToBabbageEraAlonzo BabbageEra -> yes $ AnyEraDeciderShelleyToBabbage ShelleyToBabbageEraBabbage ConwayEra -> yes $ AnyEraDeciderConwayOnwards ConwayEraOnwardsConway - --- Delegation Certificate related - -pDelegationCertificateCmd :: () - => EnvCli - -> CardanoEra era - -> Maybe (Parser (GovernanceDRepCmds era)) -pDelegationCertificateCmd _envCli era = do - w <- maybeFeatureInEra era - pure - $ subParser "delegation-certificate" - $ Opt.info (pCmd w) - $ Opt.progDesc "Delegation certificate creation." - where - pCmd :: AnyEraDecider era -> Parser (GovernanceDRepCmds era) - pCmd w = - GovernanceDRepDelegationCertificateCmd - <$> pStakeIdentifier - <*> pAnyDelegationCertificateTarget w - <*> pOutputFile - - pAnyDelegationCertificateTarget :: () - => AnyEraDecider era - -> Parser AnyDelegationTarget - pAnyDelegationCertificateTarget e = - case e of - AnyEraDeciderShelleyToBabbage sbe -> - ShelleyToBabbageDelegTarget sbe - <$> pStakePoolVerificationKeyOrHashOrFile - AnyEraDeciderConwayOnwards cOnwards -> - ConwayOnwardDelegTarget cOnwards - <$> pStakeTarget cOnwards - --- TODO: Conway era AFTER sancho net. We probably want to --- differentiate between delegating voting stake and reward stake -pStakeTarget :: ConwayEraOnwards era -> Parser (StakeTarget era) -pStakeTarget cOnwards = - asum - [ TargetVotingDrepAndStakePool cOnwards - <$> pCombinedDRepVerificationKeyOrHashOrFile - <*> pCombinedStakePoolVerificationKeyOrHashOrFile - - , TargetStakePool cOnwards <$> pStakePoolVerificationKeyOrHashOrFile - - , TargetVotingDrep cOnwards <$> pDRepVerificationKeyOrHashOrFile - , TargetVotingDRepScriptHash cOnwards <$> pDRepScriptHash - , TargetAlwaysAbstain cOnwards <$ pAlwaysAbstain - - , TargetAlwaysNoConfidence cOnwards <$ pAlwaysNoConfidence - ] - -pDRepScriptHash :: Parser ScriptHash -pDRepScriptHash = - Opt.option scriptHashReader $ mconcat - [ Opt.long "drep-script-hash" - , Opt.metavar "HASH" - , Opt.help $ mconcat - [ "DRep script hash (hex-encoded). " - ] - ] - -scriptHashReader :: Opt.ReadM ScriptHash -scriptHashReader = Opt.eitherReader $ Right . fromString diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Run/Governance/DRep.hs b/cardano-cli/src/Cardano/CLI/EraBased/Run/Governance/DRep.hs index 7a58af6548..e45842ea95 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Run/Governance/DRep.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Run/Governance/DRep.hs @@ -20,7 +20,6 @@ import Cardano.CLI.EraBased.Run.Governance import Cardano.CLI.Read import Cardano.CLI.Types.Common import Cardano.CLI.Types.Errors.CmdError -import Cardano.CLI.Types.Errors.DelegationError import Cardano.CLI.Types.Errors.GovernanceCmdError import Cardano.CLI.Types.Errors.RegistrationError import Cardano.CLI.Types.Key @@ -35,10 +34,6 @@ runGovernanceDRepCmds :: () => GovernanceDRepCmds era -> ExceptT CmdError IO () runGovernanceDRepCmds = \case - GovernanceDRepDelegationCertificateCmd stakeIdentifier delegationTarget outFp -> - runGovernanceDelegationCertificateCmd stakeIdentifier delegationTarget outFp - & firstExceptT CmdEraDelegationError - GovernanceDRepGenerateKeyCmd w vrf sgn -> runGovernanceDRepKeyGen w vrf sgn & firstExceptT CmdGovernanceCmdError @@ -51,85 +46,6 @@ runGovernanceDRepCmds = \case runGovernanceRegistrationCertificateCmd regTarget outFp & firstExceptT CmdRegistrationError -runGovernanceDelegationCertificateCmd - :: StakeIdentifier - -> AnyDelegationTarget - -> File () Out - -> ExceptT DelegationError IO () -runGovernanceDelegationCertificateCmd stakeIdentifier delegationTarget outFp = do - stakeCred <- - getStakeCredentialFromIdentifier stakeIdentifier - & firstExceptT DelegationStakeCredentialError - - case delegationTarget of - ShelleyToBabbageDelegTarget sTob stakePool -> do - poolId <- lift (readVerificationKeyOrHashOrFile AsStakePoolKey stakePool) - & onLeft (left . DelegationReadError) - let req = StakeDelegationRequirementsPreConway sTob stakeCred poolId - delegCert = makeStakeAddressDelegationCertificate req - description = Just @TextEnvelopeDescr "Stake Address Delegation Certificate" - firstExceptT DelegationCertificateWriteFileError - . newExceptT - $ writeLazyByteStringFile outFp - $ shelleyToBabbageEraConstraints sTob - $ textEnvelopeToJSON description delegCert - - ConwayOnwardDelegTarget cOnwards target -> do - delegatee <- toLedgerDelegatee target - let req = StakeDelegationRequirementsConwayOnwards cOnwards stakeCred delegatee - delegCert = makeStakeAddressDelegationCertificate req - description = Just $ toDelegateeEnvelope delegatee - firstExceptT DelegationCertificateWriteFileError - . newExceptT - $ writeLazyByteStringFile outFp - $ conwayEraOnwardsConstraints cOnwards - $ textEnvelopeToJSON description delegCert - -toLedgerDelegatee - :: StakeTarget era - -> ExceptT DelegationError IO (Ledger.Delegatee (Ledger.EraCrypto (ShelleyLedgerEra era))) -toLedgerDelegatee t = - case t of - TargetStakePool cOnwards keyOrHashOrFile -> do - StakePoolKeyHash kHash - <- lift (readVerificationKeyOrHashOrFile AsStakePoolKey keyOrHashOrFile) - & onLeft (left . DelegationReadError) - right $ Ledger.DelegStake $ conwayEraOnwardsConstraints cOnwards kHash - - TargetVotingDrep cOnwards keyOrHashOrFile -> do - DRepKeyHash drepKeyHash <- firstExceptT DelegationDRepReadError - . newExceptT - $ readVerificationKeyOrHashOrTextEnvFile AsDRepKey keyOrHashOrFile - let drepCred = Ledger.DRepCredential $ Ledger.KeyHashObj drepKeyHash - right $ Ledger.DelegVote $ conwayEraOnwardsConstraints cOnwards drepCred - - TargetVotingDrepAndStakePool cOnwards drepKeyOrHashOrFile poolKeyOrHashOrFile -> do - StakePoolKeyHash kHash - <- lift (readVerificationKeyOrHashOrFile AsStakePoolKey poolKeyOrHashOrFile) - & onLeft (left . DelegationReadError) - DRepKeyHash drepKeyHash - <- firstExceptT DelegationDRepReadError - . newExceptT - $ readVerificationKeyOrHashOrTextEnvFile AsDRepKey drepKeyOrHashOrFile - let drepCred = Ledger.DRepCredential $ Ledger.KeyHashObj drepKeyHash - right $ Ledger.DelegStakeVote - (conwayEraOnwardsConstraints cOnwards kHash) - (conwayEraOnwardsConstraints cOnwards drepCred) - - TargetAlwaysAbstain{}-> right $ Ledger.DelegVote Ledger.DRepAlwaysAbstain - - TargetAlwaysNoConfidence{} -> right $ Ledger.DelegVote Ledger.DRepAlwaysNoConfidence - - TargetVotingDRepScriptHash cOn (ScriptHash scriptHash) -> - conwayEraOnwardsConstraints cOn $ - right $ Ledger.DelegVote $ Ledger.DRepCredential $ Ledger.ScriptHashObj scriptHash - -toDelegateeEnvelope :: Ledger.Delegatee ledgerera -> TextEnvelopeDescr -toDelegateeEnvelope = \case - Ledger.DelegStake{} -> "Stake Delegation Certificate" - Ledger.DelegVote{} -> "Vote Delegation Certificate" - Ledger.DelegStakeVote{} -> "Stake and Vote Delegation Certificate" - runGovernanceDRepIdCmd :: () => ConwayEraOnwards era -> VerificationKeyOrFile DRepKey diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help.cli index 1197e7b064..b0206eb84c 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help.cli @@ -128,27 +128,10 @@ Usage: cardano-cli shelley governance action create-protocol-parameters-update - Create a protocol parameters update. -Usage: cardano-cli shelley governance drep - ( delegation-certificate - | registration-certificate - ) +Usage: cardano-cli shelley governance drep registration-certificate DRep member commands. -Usage: cardano-cli shelley governance drep delegation-certificate - ( --stake-verification-key STRING - | --stake-verification-key-file FILE - | --stake-script-file FILE - | --stake-address ADDRESS - ) - ( --stake-pool-verification-key STRING - | --cold-verification-key-file FILE - | --stake-pool-id STAKE_POOL_ID - ) - --out-file FILE - - Delegation certificate creation. - Usage: cardano-cli shelley governance drep registration-certificate ( ( --stake-pool-verification-key STRING | --cold-verification-key-file FILE @@ -758,27 +741,10 @@ Usage: cardano-cli allegra governance action create-protocol-parameters-update - Create a protocol parameters update. -Usage: cardano-cli allegra governance drep - ( delegation-certificate - | registration-certificate - ) +Usage: cardano-cli allegra governance drep registration-certificate DRep member commands. -Usage: cardano-cli allegra governance drep delegation-certificate - ( --stake-verification-key STRING - | --stake-verification-key-file FILE - | --stake-script-file FILE - | --stake-address ADDRESS - ) - ( --stake-pool-verification-key STRING - | --cold-verification-key-file FILE - | --stake-pool-id STAKE_POOL_ID - ) - --out-file FILE - - Delegation certificate creation. - Usage: cardano-cli allegra governance drep registration-certificate ( ( --stake-pool-verification-key STRING | --cold-verification-key-file FILE @@ -1388,27 +1354,10 @@ Usage: cardano-cli mary governance action create-protocol-parameters-update --ep Create a protocol parameters update. -Usage: cardano-cli mary governance drep - ( delegation-certificate - | registration-certificate - ) +Usage: cardano-cli mary governance drep registration-certificate DRep member commands. -Usage: cardano-cli mary governance drep delegation-certificate - ( --stake-verification-key STRING - | --stake-verification-key-file FILE - | --stake-script-file FILE - | --stake-address ADDRESS - ) - ( --stake-pool-verification-key STRING - | --cold-verification-key-file FILE - | --stake-pool-id STAKE_POOL_ID - ) - --out-file FILE - - Delegation certificate creation. - Usage: cardano-cli mary governance drep registration-certificate ( ( --stake-pool-verification-key STRING | --cold-verification-key-file FILE @@ -2010,27 +1959,10 @@ Usage: cardano-cli alonzo governance action create-protocol-parameters-update -- Create a protocol parameters update. -Usage: cardano-cli alonzo governance drep - ( delegation-certificate - | registration-certificate - ) +Usage: cardano-cli alonzo governance drep registration-certificate DRep member commands. -Usage: cardano-cli alonzo governance drep delegation-certificate - ( --stake-verification-key STRING - | --stake-verification-key-file FILE - | --stake-script-file FILE - | --stake-address ADDRESS - ) - ( --stake-pool-verification-key STRING - | --cold-verification-key-file FILE - | --stake-pool-id STAKE_POOL_ID - ) - --out-file FILE - - Delegation certificate creation. - Usage: cardano-cli alonzo governance drep registration-certificate ( ( --stake-pool-verification-key STRING | --cold-verification-key-file FILE @@ -2643,27 +2575,10 @@ Usage: cardano-cli babbage governance action create-protocol-parameters-update - Create a protocol parameters update. -Usage: cardano-cli babbage governance drep - ( delegation-certificate - | registration-certificate - ) +Usage: cardano-cli babbage governance drep registration-certificate DRep member commands. -Usage: cardano-cli babbage governance drep delegation-certificate - ( --stake-verification-key STRING - | --stake-verification-key-file FILE - | --stake-script-file FILE - | --stake-address ADDRESS - ) - ( --stake-pool-verification-key STRING - | --cold-verification-key-file FILE - | --stake-pool-id STAKE_POOL_ID - ) - --out-file FILE - - Delegation certificate creation. - Usage: cardano-cli babbage governance drep registration-certificate ( ( --stake-pool-verification-key STRING | --cold-verification-key-file FILE @@ -3510,7 +3425,6 @@ Usage: cardano-cli conway governance committee create-cold-key-resignation-certi Usage: cardano-cli conway governance drep ( key-gen | id - | delegation-certificate | registration-certificate ) @@ -3530,34 +3444,6 @@ Usage: cardano-cli conway governance drep id Generate a drep id. -Usage: cardano-cli conway governance drep delegation-certificate - ( --stake-verification-key STRING - | --stake-verification-key-file FILE - | --stake-script-file FILE - | --stake-address ADDRESS - ) - ( ( --combined-drep-verification-key STRING - | --combined-drep-verification-key-file FILE - | --combined-drep-key-hash HASH - ) - ( --combined-stake-pool-verification-key STRING - | --combined-cold-verification-key-file FILE - | --combined-stake-pool-id STAKE_POOL_ID - ) - | --stake-pool-verification-key STRING - | --cold-verification-key-file FILE - | --stake-pool-id STAKE_POOL_ID - | --drep-verification-key STRING - | --drep-verification-key-file FILE - | --drep-key-hash HASH - | --drep-script-hash HASH - | --always-abstain - | --always-no-confidence - ) - --out-file FILE - - Delegation certificate creation. - Usage: cardano-cli conway governance drep registration-certificate ( ( --stake-pool-verification-key STRING | --cold-verification-key-file FILE @@ -4233,27 +4119,10 @@ Usage: cardano-cli latest governance action create-protocol-parameters-update -- Create a protocol parameters update. -Usage: cardano-cli latest governance drep - ( delegation-certificate - | registration-certificate - ) +Usage: cardano-cli latest governance drep registration-certificate DRep member commands. -Usage: cardano-cli latest governance drep delegation-certificate - ( --stake-verification-key STRING - | --stake-verification-key-file FILE - | --stake-script-file FILE - | --stake-address ADDRESS - ) - ( --stake-pool-verification-key STRING - | --cold-verification-key-file FILE - | --stake-pool-id STAKE_POOL_ID - ) - --out-file FILE - - Delegation certificate creation. - Usage: cardano-cli latest governance drep registration-certificate ( ( --stake-pool-verification-key STRING | --cold-verification-key-file FILE diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_governance_drep.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_governance_drep.cli deleted file mode 100644 index ddac49ad68..0000000000 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_governance_drep.cli +++ /dev/null @@ -1,13 +0,0 @@ -Usage: cardano-cli allegra governance drep - ( delegation-certificate - | registration-certificate - ) - - DRep member commands. - -Available options: - -h,--help Show this help text - -Available commands: - delegation-certificate Delegation certificate creation. - registration-certificate Create a registration certificate. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_governance_drep_delegation-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_governance_drep_delegation-certificate.cli deleted file mode 100644 index eac9b4ff52..0000000000 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_governance_drep_delegation-certificate.cli +++ /dev/null @@ -1,31 +0,0 @@ -Usage: cardano-cli allegra governance drep delegation-certificate - ( --stake-verification-key STRING - | --stake-verification-key-file FILE - | --stake-script-file FILE - | --stake-address ADDRESS - ) - ( --stake-pool-verification-key STRING - | --cold-verification-key-file FILE - | --stake-pool-id STAKE_POOL_ID - ) - --out-file FILE - - Delegation certificate creation. - -Available options: - --stake-verification-key STRING - Stake verification key (Bech32 or hex-encoded). - --stake-verification-key-file FILE - Filepath of the staking verification key. - --stake-script-file FILE Filepath of the staking script. - --stake-address ADDRESS Target stake address (bech32 format). - --stake-pool-verification-key STRING - Stake pool verification key (Bech32 or hex-encoded). - --cold-verification-key-file FILE - Filepath of the stake pool verification key. - --stake-pool-id STAKE_POOL_ID - Stake pool ID/verification key hash (either - Bech32-encoded or hex-encoded). Zero or more - occurences of this option is allowed. - --out-file FILE The output file. - -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_governance_drep.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_governance_drep.cli deleted file mode 100644 index 08bb1708e3..0000000000 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_governance_drep.cli +++ /dev/null @@ -1,13 +0,0 @@ -Usage: cardano-cli alonzo governance drep - ( delegation-certificate - | registration-certificate - ) - - DRep member commands. - -Available options: - -h,--help Show this help text - -Available commands: - delegation-certificate Delegation certificate creation. - registration-certificate Create a registration certificate. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_governance_drep_delegation-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_governance_drep_delegation-certificate.cli deleted file mode 100644 index 7fb505e3ab..0000000000 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_governance_drep_delegation-certificate.cli +++ /dev/null @@ -1,31 +0,0 @@ -Usage: cardano-cli alonzo governance drep delegation-certificate - ( --stake-verification-key STRING - | --stake-verification-key-file FILE - | --stake-script-file FILE - | --stake-address ADDRESS - ) - ( --stake-pool-verification-key STRING - | --cold-verification-key-file FILE - | --stake-pool-id STAKE_POOL_ID - ) - --out-file FILE - - Delegation certificate creation. - -Available options: - --stake-verification-key STRING - Stake verification key (Bech32 or hex-encoded). - --stake-verification-key-file FILE - Filepath of the staking verification key. - --stake-script-file FILE Filepath of the staking script. - --stake-address ADDRESS Target stake address (bech32 format). - --stake-pool-verification-key STRING - Stake pool verification key (Bech32 or hex-encoded). - --cold-verification-key-file FILE - Filepath of the stake pool verification key. - --stake-pool-id STAKE_POOL_ID - Stake pool ID/verification key hash (either - Bech32-encoded or hex-encoded). Zero or more - occurences of this option is allowed. - --out-file FILE The output file. - -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance_drep.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance_drep.cli deleted file mode 100644 index 8487f43ff4..0000000000 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance_drep.cli +++ /dev/null @@ -1,13 +0,0 @@ -Usage: cardano-cli babbage governance drep - ( delegation-certificate - | registration-certificate - ) - - DRep member commands. - -Available options: - -h,--help Show this help text - -Available commands: - delegation-certificate Delegation certificate creation. - registration-certificate Create a registration certificate. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance_drep_delegation-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance_drep_delegation-certificate.cli deleted file mode 100644 index acc50bb9b2..0000000000 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance_drep_delegation-certificate.cli +++ /dev/null @@ -1,31 +0,0 @@ -Usage: cardano-cli babbage governance drep delegation-certificate - ( --stake-verification-key STRING - | --stake-verification-key-file FILE - | --stake-script-file FILE - | --stake-address ADDRESS - ) - ( --stake-pool-verification-key STRING - | --cold-verification-key-file FILE - | --stake-pool-id STAKE_POOL_ID - ) - --out-file FILE - - Delegation certificate creation. - -Available options: - --stake-verification-key STRING - Stake verification key (Bech32 or hex-encoded). - --stake-verification-key-file FILE - Filepath of the staking verification key. - --stake-script-file FILE Filepath of the staking script. - --stake-address ADDRESS Target stake address (bech32 format). - --stake-pool-verification-key STRING - Stake pool verification key (Bech32 or hex-encoded). - --cold-verification-key-file FILE - Filepath of the stake pool verification key. - --stake-pool-id STAKE_POOL_ID - Stake pool ID/verification key hash (either - Bech32-encoded or hex-encoded). Zero or more - occurences of this option is allowed. - --out-file FILE The output file. - -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_drep.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_drep.cli index e0f1b59fc3..285f997d92 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_drep.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_drep.cli @@ -1,7 +1,6 @@ Usage: cardano-cli conway governance drep ( key-gen | id - | delegation-certificate | registration-certificate ) @@ -14,5 +13,4 @@ Available commands: key-gen Generate Delegate Representative verification and signing keys. id Generate a drep id. - delegation-certificate Delegation certificate creation. registration-certificate Create a registration certificate. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_drep_delegation-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_drep_delegation-certificate.cli deleted file mode 100644 index fe6e86617f..0000000000 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_drep_delegation-certificate.cli +++ /dev/null @@ -1,71 +0,0 @@ -Usage: cardano-cli conway governance drep delegation-certificate - ( --stake-verification-key STRING - | --stake-verification-key-file FILE - | --stake-script-file FILE - | --stake-address ADDRESS - ) - ( ( --combined-drep-verification-key STRING - | --combined-drep-verification-key-file FILE - | --combined-drep-key-hash HASH - ) - ( --combined-stake-pool-verification-key STRING - | --combined-cold-verification-key-file FILE - | --combined-stake-pool-id STAKE_POOL_ID - ) - | --stake-pool-verification-key STRING - | --cold-verification-key-file FILE - | --stake-pool-id STAKE_POOL_ID - | --drep-verification-key STRING - | --drep-verification-key-file FILE - | --drep-key-hash HASH - | --drep-script-hash HASH - | --always-abstain - | --always-no-confidence - ) - --out-file FILE - - Delegation certificate creation. - -Available options: - --stake-verification-key STRING - Stake verification key (Bech32 or hex-encoded). - --stake-verification-key-file FILE - Filepath of the staking verification key. - --stake-script-file FILE Filepath of the staking script. - --stake-address ADDRESS Target stake address (bech32 format). - --combined-drep-verification-key STRING - DRep verification key (Bech32 or hex-encoded). - --combined-drep-verification-key-file FILE - Filepath of the DRep verification key. - --combined-drep-key-hash HASH - DRep verification key hash (either Bech32-encoded or - hex-encoded). Zero or more occurences of this option - is allowed. - --combined-stake-pool-verification-key STRING - Stake pool verification key (Bech32 or hex-encoded). - --combined-cold-verification-key-file FILE - Filepath of the stake pool verification key. - --combined-stake-pool-id STAKE_POOL_ID - Stake pool ID/verification key hash (either - Bech32-encoded or hex-encoded). Zero or more - occurences of this option is allowed. - --stake-pool-verification-key STRING - Stake pool verification key (Bech32 or hex-encoded). - --cold-verification-key-file FILE - Filepath of the stake pool verification key. - --stake-pool-id STAKE_POOL_ID - Stake pool ID/verification key hash (either - Bech32-encoded or hex-encoded). Zero or more - occurences of this option is allowed. - --drep-verification-key STRING - DRep verification key (Bech32 or hex-encoded). - --drep-verification-key-file FILE - Filepath of the DRep verification key. - --drep-key-hash HASH DRep verification key hash (either Bech32-encoded or - hex-encoded). Zero or more occurences of this option - is allowed. - --drep-script-hash HASH DRep script hash (hex-encoded). - --always-abstain Abstain from voting on all proposals. - --always-no-confidence Always vote no confidence - --out-file FILE The output file. - -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance_drep.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance_drep.cli deleted file mode 100644 index 3a78bc3423..0000000000 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance_drep.cli +++ /dev/null @@ -1,13 +0,0 @@ -Usage: cardano-cli latest governance drep - ( delegation-certificate - | registration-certificate - ) - - DRep member commands. - -Available options: - -h,--help Show this help text - -Available commands: - delegation-certificate Delegation certificate creation. - registration-certificate Create a registration certificate. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance_drep_delegation-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance_drep_delegation-certificate.cli deleted file mode 100644 index e7515a5083..0000000000 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance_drep_delegation-certificate.cli +++ /dev/null @@ -1,31 +0,0 @@ -Usage: cardano-cli latest governance drep delegation-certificate - ( --stake-verification-key STRING - | --stake-verification-key-file FILE - | --stake-script-file FILE - | --stake-address ADDRESS - ) - ( --stake-pool-verification-key STRING - | --cold-verification-key-file FILE - | --stake-pool-id STAKE_POOL_ID - ) - --out-file FILE - - Delegation certificate creation. - -Available options: - --stake-verification-key STRING - Stake verification key (Bech32 or hex-encoded). - --stake-verification-key-file FILE - Filepath of the staking verification key. - --stake-script-file FILE Filepath of the staking script. - --stake-address ADDRESS Target stake address (bech32 format). - --stake-pool-verification-key STRING - Stake pool verification key (Bech32 or hex-encoded). - --cold-verification-key-file FILE - Filepath of the stake pool verification key. - --stake-pool-id STAKE_POOL_ID - Stake pool ID/verification key hash (either - Bech32-encoded or hex-encoded). Zero or more - occurences of this option is allowed. - --out-file FILE The output file. - -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_governance_drep.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_governance_drep.cli deleted file mode 100644 index e572fc05f6..0000000000 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_governance_drep.cli +++ /dev/null @@ -1,13 +0,0 @@ -Usage: cardano-cli mary governance drep - ( delegation-certificate - | registration-certificate - ) - - DRep member commands. - -Available options: - -h,--help Show this help text - -Available commands: - delegation-certificate Delegation certificate creation. - registration-certificate Create a registration certificate. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_governance_drep_delegation-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_governance_drep_delegation-certificate.cli deleted file mode 100644 index c6823e0d37..0000000000 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_governance_drep_delegation-certificate.cli +++ /dev/null @@ -1,31 +0,0 @@ -Usage: cardano-cli mary governance drep delegation-certificate - ( --stake-verification-key STRING - | --stake-verification-key-file FILE - | --stake-script-file FILE - | --stake-address ADDRESS - ) - ( --stake-pool-verification-key STRING - | --cold-verification-key-file FILE - | --stake-pool-id STAKE_POOL_ID - ) - --out-file FILE - - Delegation certificate creation. - -Available options: - --stake-verification-key STRING - Stake verification key (Bech32 or hex-encoded). - --stake-verification-key-file FILE - Filepath of the staking verification key. - --stake-script-file FILE Filepath of the staking script. - --stake-address ADDRESS Target stake address (bech32 format). - --stake-pool-verification-key STRING - Stake pool verification key (Bech32 or hex-encoded). - --cold-verification-key-file FILE - Filepath of the stake pool verification key. - --stake-pool-id STAKE_POOL_ID - Stake pool ID/verification key hash (either - Bech32-encoded or hex-encoded). Zero or more - occurences of this option is allowed. - --out-file FILE The output file. - -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_governance_drep.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_governance_drep.cli deleted file mode 100644 index a489125b04..0000000000 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_governance_drep.cli +++ /dev/null @@ -1,13 +0,0 @@ -Usage: cardano-cli shelley governance drep - ( delegation-certificate - | registration-certificate - ) - - DRep member commands. - -Available options: - -h,--help Show this help text - -Available commands: - delegation-certificate Delegation certificate creation. - registration-certificate Create a registration certificate. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_governance_drep_delegation-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_governance_drep_delegation-certificate.cli deleted file mode 100644 index 662343a833..0000000000 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_governance_drep_delegation-certificate.cli +++ /dev/null @@ -1,31 +0,0 @@ -Usage: cardano-cli shelley governance drep delegation-certificate - ( --stake-verification-key STRING - | --stake-verification-key-file FILE - | --stake-script-file FILE - | --stake-address ADDRESS - ) - ( --stake-pool-verification-key STRING - | --cold-verification-key-file FILE - | --stake-pool-id STAKE_POOL_ID - ) - --out-file FILE - - Delegation certificate creation. - -Available options: - --stake-verification-key STRING - Stake verification key (Bech32 or hex-encoded). - --stake-verification-key-file FILE - Filepath of the staking verification key. - --stake-script-file FILE Filepath of the staking script. - --stake-address ADDRESS Target stake address (bech32 format). - --stake-pool-verification-key STRING - Stake pool verification key (Bech32 or hex-encoded). - --cold-verification-key-file FILE - Filepath of the stake pool verification key. - --stake-pool-id STAKE_POOL_ID - Stake pool ID/verification key hash (either - Bech32-encoded or hex-encoded). Zero or more - occurences of this option is allowed. - --out-file FILE The output file. - -h,--help Show this help text