diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Certificate.hs b/cardano-cli/src/Cardano/CLI/EraBased/Certificate.hs index 49700bdb10..801e199c20 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Certificate.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Certificate.hs @@ -7,6 +7,9 @@ module Cardano.CLI.EraBased.Certificate ( EraBasedDelegationError(..) , runGovernanceDelegrationCertificate + + , EraBasedRegistrationError(..) + , runGovernanceRegistrationCertificate ) where import Cardano.Api @@ -21,6 +24,9 @@ import Control.Monad.Trans.Except (ExceptT) import Control.Monad.Trans.Except.Extra import Data.Function + +-- Delegation Certificate related + data EraBasedDelegationError = EraBasedDelegReadError !(FileError InputDecodeError) | EraBasedCredentialError !ShelleyStakeAddressCmdError -- TODO: Refactor. We shouldn't be using legacy error types @@ -93,3 +99,166 @@ toLedgerDelegatee t = right $ Ledger.DelegStakeVote (conwayEraOnwardsConstraints cOnwards kHash) (conwayEraOnwardsConstraints cOnwards drepCred) + +-------------------------------------------------------------------------------- + +-- Registration Certificate related + + +data EraBasedRegistrationError + = EraBasedRegistReadError !(FileError InputDecodeError) + | EraBasedRegistWriteFileError !(FileError ()) + | EraBasedRegistStakeCredReadError !ShelleyStakeAddressCmdError -- TODO: Conway era - don't use legacy error type + | EraBasedRegistStakeError StakeAddressRegistrationError + +runGovernanceRegistrationCertificate + :: AnyRegistrationTarget + -> File () Out + -> ExceptT EraBasedRegistrationError IO () +runGovernanceRegistrationCertificate anyReg outfp = + case anyReg of + ShelleyToBabbageStakePoolRegTarget stoB regReqs -> do + -- Pool verification key + stakePoolVerKey <- firstExceptT EraBasedRegistReadError + . newExceptT + $ readVerificationKeyOrFile AsStakePoolKey $ sprStakePoolKey regReqs + let stakePoolId' = verificationKeyHash stakePoolVerKey + + -- VRF verification key + vrfVerKey <- firstExceptT EraBasedRegistReadError + . newExceptT + $ readVerificationKeyOrFile AsVrfKey $ sprVrfKey regReqs + let vrfKeyHash' = verificationKeyHash vrfVerKey + + -- Pool reward account + rwdStakeVerKey <- firstExceptT EraBasedRegistReadError + . newExceptT + $ readVerificationKeyOrFile AsStakeKey $ sprRewardAccountKey regReqs + let stakeCred = StakeCredentialByKey (verificationKeyHash rwdStakeVerKey) + rewardAccountAddr = makeStakeAddress (sprNetworkId regReqs) stakeCred + + -- Pool owner(s) + sPoolOwnerVkeys <- + mapM + (firstExceptT EraBasedRegistReadError + . newExceptT + . readVerificationKeyOrFile AsStakeKey + ) + (spoPoolOwnerKeys regReqs) + let stakePoolOwners' = map verificationKeyHash sPoolOwnerVkeys + + let stakePoolParams = + StakePoolParameters + { stakePoolId = stakePoolId' + , stakePoolVRF = vrfKeyHash' + , stakePoolCost = sprPoolCost regReqs + , stakePoolMargin = sprPoolMargin regReqs + , stakePoolRewardAccount = rewardAccountAddr + , stakePoolPledge = sprPoolPledge regReqs + , stakePoolOwners = stakePoolOwners' + , stakePoolRelays = sprRelays regReqs + , stakePoolMetadata = sprMetadata regReqs + } + + let ledgerStakePoolParams = toShelleyPoolParams stakePoolParams + req = StakePoolRegistrationRequirementsPreConway stoB $ shelleyCertificateConstraints stoB ledgerStakePoolParams + registrationCert = makeStakePoolRegistrationCertificate req + description = Just @TextEnvelopeDescr "Stake Pool Registration Certificate" + firstExceptT EraBasedRegistWriteFileError + . newExceptT + . writeLazyByteStringFile outfp + $ shelleyCertificateConstraints stoB + $ textEnvelopeToJSON description registrationCert + + ShelleyToBabbageStakeKeyRegTarget sToB stakeIdentifier -> do + stakeCred <- firstExceptT EraBasedRegistStakeCredReadError + $ getStakeCredentialFromIdentifier stakeIdentifier + let req = StakeAddrRegistrationPreConway sToB stakeCred + registrationCert = makeStakeAddressRegistrationCertificate req + description = Just @TextEnvelopeDescr "Stake Key Registration Certificate" + firstExceptT EraBasedRegistWriteFileError + . newExceptT + . writeLazyByteStringFile outfp + $ shelleyCertificateConstraints sToB + $ textEnvelopeToJSON description registrationCert + + ConwayOnwardRegTarget _ regTarget -> + case regTarget of + RegisterStakePool cOnwards regReqs -> do + -- Pool verification key + stakePoolVerKey <- firstExceptT EraBasedRegistReadError + . newExceptT + $ readVerificationKeyOrFile AsStakePoolKey $ sprStakePoolKey regReqs + let stakePoolId' = verificationKeyHash stakePoolVerKey + -- VRF verification key + vrfVerKey <- firstExceptT EraBasedRegistReadError + . newExceptT + $ readVerificationKeyOrFile AsVrfKey $ sprVrfKey regReqs + let vrfKeyHash' = verificationKeyHash vrfVerKey + -- Pool reward account + rwdStakeVerKey <- firstExceptT EraBasedRegistReadError + . newExceptT + $ readVerificationKeyOrFile AsStakeKey $ sprRewardAccountKey regReqs + let stakeCred = StakeCredentialByKey (verificationKeyHash rwdStakeVerKey) + rewardAccountAddr = makeStakeAddress (sprNetworkId regReqs) stakeCred + -- Pool owner(s) + sPoolOwnerVkeys <- + mapM + (firstExceptT EraBasedRegistReadError + . newExceptT + . readVerificationKeyOrFile AsStakeKey + ) + (spoPoolOwnerKeys regReqs) + let stakePoolOwners' = map verificationKeyHash sPoolOwnerVkeys + + let stakePoolParams = + StakePoolParameters + { stakePoolId = stakePoolId' + , stakePoolVRF = vrfKeyHash' + , stakePoolCost = sprPoolCost regReqs + , stakePoolMargin = sprPoolMargin regReqs + , stakePoolRewardAccount = rewardAccountAddr + , stakePoolPledge = sprPoolPledge regReqs + , stakePoolOwners = stakePoolOwners' + , stakePoolRelays = sprRelays regReqs + , stakePoolMetadata = sprMetadata regReqs + } + + let ledgerStakePoolParams = toShelleyPoolParams stakePoolParams + req = StakePoolRegistrationRequirementsConwayOnwards cOnwards + $ conwayCertificateConstraints cOnwards ledgerStakePoolParams + registrationCert = makeStakePoolRegistrationCertificate req + description = Just @TextEnvelopeDescr "Stake Pool Registration Certificate" + firstExceptT EraBasedRegistWriteFileError + . newExceptT + . writeLazyByteStringFile outfp + $ conwayCertificateConstraints cOnwards + $ textEnvelopeToJSON description registrationCert + RegisterStakeKey cOnwards sIdentifier deposit -> do + stakeCred <- firstExceptT EraBasedRegistStakeCredReadError + $ getStakeCredentialFromIdentifier sIdentifier + let req = StakeAddrRegistrationConway cOnwards deposit stakeCred + registrationCert = makeStakeAddressRegistrationCertificate req + description = Just @TextEnvelopeDescr "Stake Key Registration Certificate" + firstExceptT EraBasedRegistWriteFileError + . newExceptT + . writeLazyByteStringFile outfp + $ conwayCertificateConstraints cOnwards + $ textEnvelopeToJSON description registrationCert + RegisterDRep cOnwards drepVKey deposit -> do + DRepKeyHash drepKeyHash <- firstExceptT EraBasedRegistReadError + . newExceptT + $ readVerificationKeyOrHashOrFile AsDRepKey drepVKey + let drepCred = Ledger.KeyHashObj $ conwayCertificateConstraints cOnwards drepKeyHash + votingCredential = VotingCredential drepCred + req = DRepRegistrationRequirements cOnwards votingCredential deposit + registrationCert = makeDrepRegistrationCertificate req + description = Just @TextEnvelopeDescr "DRep Key Registration Certificate" + + firstExceptT EraBasedRegistWriteFileError + . newExceptT + . writeLazyByteStringFile outfp + $ conwayCertificateConstraints cOnwards + $ textEnvelopeToJSON description registrationCert + +-------------------------------------------------------------------------------- diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Legacy.hs b/cardano-cli/src/Cardano/CLI/EraBased/Legacy.hs index 79c19dc082..917b539125 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Legacy.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Legacy.hs @@ -15,6 +15,7 @@ module Cardano.CLI.EraBased.Legacy , parseTxIn , pKeyRegistDeposit + , pStakePoolRegistrationParserRequirements , pStakePoolVerificationKeyOrHashOrFile ) where @@ -27,8 +28,8 @@ import Cardano.CLI.Environment (EnvCli (..)) import Cardano.CLI.EraBased.Governance import Cardano.CLI.EraBased.Options.Common import Cardano.CLI.Types.Key (DelegationTarget (..), PaymentVerifier (..), - VerificationKeyOrFile (..), VerificationKeyOrHashOrFile (..), - VerificationKeyTextOrFile (..)) + StakePoolRegistrationParserRequirements (..), VerificationKeyOrFile (..), + VerificationKeyOrHashOrFile (..), VerificationKeyTextOrFile (..)) import Cardano.CLI.Types.Legacy import qualified Cardano.Ledger.BaseTypes as Shelley import Cardano.Prelude (ConvertText (..)) @@ -3033,6 +3034,23 @@ pStakePoolRegistrationCert envCli = <*> pNetworkId envCli <*> pOutputFile + +pStakePoolRegistrationParserRequirements + :: EnvCli -> Parser StakePoolRegistrationParserRequirements +pStakePoolRegistrationParserRequirements envCli = + StakePoolRegistrationParserRequirements + <$> pStakePoolVerificationKeyOrFile + <*> pVrfVerificationKeyOrFile + <*> pPoolPledge + <*> pPoolCost + <*> pPoolMargin + <*> pRewardAcctVerificationKeyOrFile + <*> some pPoolOwnerVerificationKeyOrFile + <*> many pPoolRelay + <*> pStakePoolMetadataReference + <*> pNetworkId envCli + + pStakePoolRetirementCert :: EnvCli -> Parser PoolCmd pStakePoolRetirementCert envCli = PoolRetirementCert diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance.hs b/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance.hs index b3ec44513d..d3007ed47c 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance.hs @@ -41,6 +41,9 @@ data EraBasedGovernanceCmd era StakeIdentifier AnyDelegationTarget (File () Out) + | EraBasedGovernanceRegistrationCertificateCmd + AnyRegistrationTarget + (File () Out) renderEraBasedGovernanceCmd :: EraBasedGovernanceCmd era -> Text renderEraBasedGovernanceCmd = \case @@ -49,15 +52,58 @@ renderEraBasedGovernanceCmd = \case EraBasedGovernanceMIRPayStakeAddressesCertificate {} -> "TODO EraBasedGovernanceMIRPayStakeAddressesCertificate" EraBasedGovernanceMIRTransfer {} -> "TODO EraBasedGovernanceMIRTransfer" EraBasedGovernanceDelegationCertificateCmd {} -> "governance delegation-certificate" + EraBasedGovernanceRegistrationCertificateCmd {} -> "governance registration-certificate" --- TODO: Conway era - move to Cardano.CLI.Conway.Parsers pEraBasedGovernanceCmd :: EnvCli -> CardanoEra era -> Parser (EraBasedGovernanceCmd era) pEraBasedGovernanceCmd envCli era = asum $ catMaybes - [ pEraBasedDelegationCertificateCmd envCli era + [ pEraBasedRegistrationCertificateCmd envCli era + , pEraBasedDelegationCertificateCmd envCli era , pCreateMirCertificatesCmds era ] + +-- Registration Certificate related + + +pEraBasedRegistrationCertificateCmd + :: EnvCli -> CardanoEra era -> Maybe (Parser (EraBasedGovernanceCmd era)) +pEraBasedRegistrationCertificateCmd envCli = + featureInEra Nothing $ \w -> + Just + $ subParser "registration-certificate" + $ Opt.info (pEraCmd envCli w) + $ Opt.progDesc "Create a registration certificate." + where + pEraCmd :: EnvCli -> AnyEraDecider era -> Parser (EraBasedGovernanceCmd era) + pEraCmd envCli' = \case + AnyEraDeciderShelleyToBabbage sToB -> + EraBasedGovernanceRegistrationCertificateCmd + <$> asum [ ShelleyToBabbageStakePoolRegTarget sToB + <$> pStakePoolRegistrationParserRequirements envCli' + , ShelleyToBabbageStakeKeyRegTarget sToB + <$> pStakeIdentifier + ] + <*> pOutputFile + + AnyEraDeciderConwayOnwards cOn -> + EraBasedGovernanceRegistrationCertificateCmd . ConwayOnwardRegTarget cOn + <$> asum [ RegisterStakePool cOn + <$> pStakePoolRegistrationParserRequirements envCli' + , RegisterStakeKey cOn + <$> pStakeIdentifier + <*> pKeyRegistDeposit + , RegisterDRep cOn + <$> pDRepVerificationKeyOrHashOrFile + <*> pKeyRegistDeposit + ] + <*> pOutputFile + + + +-------------------------------------------------------------------------------- + + data AnyEraDecider era where AnyEraDeciderShelleyToBabbage :: ShelleyToBabbageEra era -> AnyEraDecider era AnyEraDeciderConwayOnwards :: ConwayEraOnwards era -> AnyEraDecider era @@ -72,13 +118,15 @@ instance FeatureInEra AnyEraDecider where BabbageEra -> yes $ AnyEraDeciderShelleyToBabbage ShelleyToBabbageEraBabbage ConwayEra -> yes $ AnyEraDeciderConwayOnwards ConwayEraOnwardsConway +-- Delegation Certificate related + pEraBasedDelegationCertificateCmd :: EnvCli -> CardanoEra era -> Maybe (Parser (EraBasedGovernanceCmd era)) pEraBasedDelegationCertificateCmd _envCli = featureInEra Nothing $ \w -> Just $ subParser "delegation-certificate" $ Opt.info (pCmd w) - $ Opt.progDesc "Post conway era governance command" -- TODO: We can render the help message based on the era + $ Opt.progDesc "Delegation certificate creation." where pCmd :: AnyEraDecider era -> Parser (EraBasedGovernanceCmd era) pCmd w = @@ -98,6 +146,7 @@ pEraBasedDelegationCertificateCmd _envCli = 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) @@ -153,6 +202,7 @@ pDRepVerificationKeyFile = , Opt.completer (Opt.bashCompleter "file") ] +-------------------------------------------------------------------------------- pCreateMirCertificatesCmds :: CardanoEra era -> Maybe (Parser (EraBasedGovernanceCmd era)) pCreateMirCertificatesCmds = diff --git a/cardano-cli/src/Cardano/CLI/Run/EraBased.hs b/cardano-cli/src/Cardano/CLI/Run/EraBased.hs index 1ae7dd1d62..674cc8128d 100644 --- a/cardano-cli/src/Cardano/CLI/Run/EraBased.hs +++ b/cardano-cli/src/Cardano/CLI/Run/EraBased.hs @@ -49,16 +49,21 @@ runEraBasedGovernanceCmd = \case EraBasedGovernancePostConwayCmd w -> runEraBasedGovernancePostConwayCmd w EraBasedGovernanceMIRPayStakeAddressesCertificate w mirpot vKeys rewards out -> - firstExceptT (const ()) -- TODO fix error handling + firstExceptT (const ()) -- TODO: Conway era - fix error handling $ runGovernanceMIRCertificatePayStakeAddrs w mirpot vKeys rewards out + EraBasedGovernanceMIRTransfer w ll oFp direction -> - firstExceptT (const ()) -- TODO fix error handling + firstExceptT (const ()) -- TODO: Conway era - fix error handling $ runGovernanceMIRCertificateTransfer w ll oFp direction EraBasedGovernanceDelegationCertificateCmd stakeIdentifier delegationTarget outFp -> - firstExceptT (const ()) -- TODO fix error handling + firstExceptT (const ()) -- TODO: Conway era - fix error handling $ runGovernanceDelegrationCertificate stakeIdentifier delegationTarget outFp + EraBasedGovernanceRegistrationCertificateCmd regTarget outFp -> + firstExceptT (const ()) -- TODO: Conway era - fix error handling + $ runGovernanceRegistrationCertificate regTarget outFp + runEraBasedGovernancePreConwayCmd :: ShelleyToBabbageEra era -> ExceptT () IO () diff --git a/cardano-cli/src/Cardano/CLI/Run/Legacy/StakeAddress.hs b/cardano-cli/src/Cardano/CLI/Run/Legacy/StakeAddress.hs index f140d91e78..0268b23497 100644 --- a/cardano-cli/src/Cardano/CLI/Run/Legacy/StakeAddress.hs +++ b/cardano-cli/src/Cardano/CLI/Run/Legacy/StakeAddress.hs @@ -16,6 +16,9 @@ module Cardano.CLI.Run.Legacy.StakeAddress , StakeAddressDelegationError(..) , createDelegationCertRequirements + + , StakeAddressRegistrationError(..) + , createRegistrationCertRequirements ) where import Cardano.Api diff --git a/cardano-cli/src/Cardano/CLI/Types/Key.hs b/cardano-cli/src/Cardano/CLI/Types/Key.hs index 3cc15232f6..12d5dbaac5 100644 --- a/cardano-cli/src/Cardano/CLI/Types/Key.hs +++ b/cardano-cli/src/Cardano/CLI/Types/Key.hs @@ -28,11 +28,14 @@ module Cardano.CLI.Types.Key , generateKeyPair --- Legacy , DelegationTarget(..) -- TODO: Remove me - + , StakePoolRegistrationParserRequirements(..) -- NewEraBased , AnyDelegationTarget(..) , StakeTarget (..) + + , AnyRegistrationTarget(..) + , RegistrationTarget(..) ) where import Cardano.Api @@ -119,6 +122,65 @@ data StakeIdentifier | StakeIdentifierAddress StakeAddress deriving (Eq, Show) + +data AnyRegistrationTarget where + ShelleyToBabbageStakePoolRegTarget + :: ShelleyToBabbageEra era + -> StakePoolRegistrationParserRequirements + -> AnyRegistrationTarget + + ShelleyToBabbageStakeKeyRegTarget + :: ShelleyToBabbageEra era + -> StakeIdentifier + -> AnyRegistrationTarget + + ConwayOnwardRegTarget + :: ConwayEraOnwards era + -> RegistrationTarget era + -> AnyRegistrationTarget + +data StakePoolRegistrationParserRequirements + = StakePoolRegistrationParserRequirements + { sprStakePoolKey :: VerificationKeyOrFile StakePoolKey + -- ^ Stake pool verification key. + , sprVrfKey :: VerificationKeyOrFile VrfKey + -- ^ VRF Verification key. + , sprPoolPledge :: Lovelace + -- ^ Pool pledge. + , sprPoolCost :: Lovelace + -- ^ Pool cost. + , sprPoolMargin :: Rational + -- ^ Pool margin. + , sprRewardAccountKey :: VerificationKeyOrFile StakeKey + -- ^ Reward account verification staking key. + , spoPoolOwnerKeys :: [VerificationKeyOrFile StakeKey] + -- ^ Pool owner verification staking key(s). + , sprRelays :: [StakePoolRelay] + -- ^ Stake pool relays. + , sprMetadata :: Maybe StakePoolMetadataReference + -- ^ Stake pool metadata. + , sprNetworkId :: NetworkId + } + + +data RegistrationTarget era where + RegisterStakePool + :: ConwayEraOnwards era + -> StakePoolRegistrationParserRequirements + -> RegistrationTarget era + + RegisterStakeKey + :: ConwayEraOnwards era + -> StakeIdentifier + -> Lovelace + -> RegistrationTarget era + + RegisterDRep + :: ConwayEraOnwards era + -> VerificationKeyOrHashOrFile DRepKey + -> Lovelace + -> RegistrationTarget era + -- | A resource that identifies the delegation target. We can delegate -- our stake for two reasons: -- 1. To gain rewards. This is limited to choosing a stake pool 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 28b026d6e4..579081e2f4 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help.cli @@ -20,12 +20,50 @@ Usage: cardano-cli shelley governance Shelley era commands Usage: cardano-cli shelley governance - ( delegation-certificate + ( registration-certificate + | delegation-certificate | create-mir-certificate ) Era-based governance commands +Usage: cardano-cli shelley governance registration-certificate + ( ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + ( --vrf-verification-key STRING + | --vrf-verification-key-file FILE + ) + --pool-pledge LOVELACE + --pool-cost LOVELACE + --pool-margin RATIONAL + ( --pool-reward-account-verification-key STRING + | --pool-reward-account-verification-key-file FILE + ) + ( --pool-owner-verification-key STRING + | --pool-owner-stake-verification-key-file FILE + ) + [ [--pool-relay-ipv4 STRING] + [--pool-relay-ipv6 STRING] + --pool-relay-port INT + | --single-host-pool-relay STRING + [--pool-relay-port INT] + | --multi-host-pool-relay STRING + ] + [--metadata-url URL + --metadata-hash HASH] + ( --mainnet + | --testnet-magic NATURAL + ) + | --stake-verification-key STRING + | --stake-verification-key-file FILE + | --stake-script-file FILE + | --stake-address ADDRESS + ) + --out-file FILE + + Create a registration certificate. + Usage: cardano-cli shelley governance delegation-certificate ( --stake-verification-key STRING | --stake-verification-key-file FILE @@ -38,7 +76,7 @@ Usage: cardano-cli shelley governance delegation-certificate ) --out-file FILE - Post conway era governance command + Delegation certificate creation. Usage: cardano-cli shelley governance create-mir-certificate ( ( --reserves @@ -81,12 +119,50 @@ Usage: cardano-cli allegra governance Allegra era commands Usage: cardano-cli allegra governance - ( delegation-certificate + ( registration-certificate + | delegation-certificate | create-mir-certificate ) Era-based governance commands +Usage: cardano-cli allegra governance registration-certificate + ( ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + ( --vrf-verification-key STRING + | --vrf-verification-key-file FILE + ) + --pool-pledge LOVELACE + --pool-cost LOVELACE + --pool-margin RATIONAL + ( --pool-reward-account-verification-key STRING + | --pool-reward-account-verification-key-file FILE + ) + ( --pool-owner-verification-key STRING + | --pool-owner-stake-verification-key-file FILE + ) + [ [--pool-relay-ipv4 STRING] + [--pool-relay-ipv6 STRING] + --pool-relay-port INT + | --single-host-pool-relay STRING + [--pool-relay-port INT] + | --multi-host-pool-relay STRING + ] + [--metadata-url URL + --metadata-hash HASH] + ( --mainnet + | --testnet-magic NATURAL + ) + | --stake-verification-key STRING + | --stake-verification-key-file FILE + | --stake-script-file FILE + | --stake-address ADDRESS + ) + --out-file FILE + + Create a registration certificate. + Usage: cardano-cli allegra governance delegation-certificate ( --stake-verification-key STRING | --stake-verification-key-file FILE @@ -99,7 +175,7 @@ Usage: cardano-cli allegra governance delegation-certificate ) --out-file FILE - Post conway era governance command + Delegation certificate creation. Usage: cardano-cli allegra governance create-mir-certificate ( ( --reserves @@ -142,12 +218,50 @@ Usage: cardano-cli mary governance Mary era commands Usage: cardano-cli mary governance - ( delegation-certificate + ( registration-certificate + | delegation-certificate | create-mir-certificate ) Era-based governance commands +Usage: cardano-cli mary governance registration-certificate + ( ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + ( --vrf-verification-key STRING + | --vrf-verification-key-file FILE + ) + --pool-pledge LOVELACE + --pool-cost LOVELACE + --pool-margin RATIONAL + ( --pool-reward-account-verification-key STRING + | --pool-reward-account-verification-key-file FILE + ) + ( --pool-owner-verification-key STRING + | --pool-owner-stake-verification-key-file FILE + ) + [ [--pool-relay-ipv4 STRING] + [--pool-relay-ipv6 STRING] + --pool-relay-port INT + | --single-host-pool-relay STRING + [--pool-relay-port INT] + | --multi-host-pool-relay STRING + ] + [--metadata-url URL + --metadata-hash HASH] + ( --mainnet + | --testnet-magic NATURAL + ) + | --stake-verification-key STRING + | --stake-verification-key-file FILE + | --stake-script-file FILE + | --stake-address ADDRESS + ) + --out-file FILE + + Create a registration certificate. + Usage: cardano-cli mary governance delegation-certificate ( --stake-verification-key STRING | --stake-verification-key-file FILE @@ -160,7 +274,7 @@ Usage: cardano-cli mary governance delegation-certificate ) --out-file FILE - Post conway era governance command + Delegation certificate creation. Usage: cardano-cli mary governance create-mir-certificate ( ( --reserves @@ -203,12 +317,50 @@ Usage: cardano-cli alonzo governance Alonzo era commands Usage: cardano-cli alonzo governance - ( delegation-certificate + ( registration-certificate + | delegation-certificate | create-mir-certificate ) Era-based governance commands +Usage: cardano-cli alonzo governance registration-certificate + ( ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + ( --vrf-verification-key STRING + | --vrf-verification-key-file FILE + ) + --pool-pledge LOVELACE + --pool-cost LOVELACE + --pool-margin RATIONAL + ( --pool-reward-account-verification-key STRING + | --pool-reward-account-verification-key-file FILE + ) + ( --pool-owner-verification-key STRING + | --pool-owner-stake-verification-key-file FILE + ) + [ [--pool-relay-ipv4 STRING] + [--pool-relay-ipv6 STRING] + --pool-relay-port INT + | --single-host-pool-relay STRING + [--pool-relay-port INT] + | --multi-host-pool-relay STRING + ] + [--metadata-url URL + --metadata-hash HASH] + ( --mainnet + | --testnet-magic NATURAL + ) + | --stake-verification-key STRING + | --stake-verification-key-file FILE + | --stake-script-file FILE + | --stake-address ADDRESS + ) + --out-file FILE + + Create a registration certificate. + Usage: cardano-cli alonzo governance delegation-certificate ( --stake-verification-key STRING | --stake-verification-key-file FILE @@ -221,7 +373,7 @@ Usage: cardano-cli alonzo governance delegation-certificate ) --out-file FILE - Post conway era governance command + Delegation certificate creation. Usage: cardano-cli alonzo governance create-mir-certificate ( ( --reserves @@ -264,12 +416,50 @@ Usage: cardano-cli babbage governance Babbage era commands Usage: cardano-cli babbage governance - ( delegation-certificate + ( registration-certificate + | delegation-certificate | create-mir-certificate ) Era-based governance commands +Usage: cardano-cli babbage governance registration-certificate + ( ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + ( --vrf-verification-key STRING + | --vrf-verification-key-file FILE + ) + --pool-pledge LOVELACE + --pool-cost LOVELACE + --pool-margin RATIONAL + ( --pool-reward-account-verification-key STRING + | --pool-reward-account-verification-key-file FILE + ) + ( --pool-owner-verification-key STRING + | --pool-owner-stake-verification-key-file FILE + ) + [ [--pool-relay-ipv4 STRING] + [--pool-relay-ipv6 STRING] + --pool-relay-port INT + | --single-host-pool-relay STRING + [--pool-relay-port INT] + | --multi-host-pool-relay STRING + ] + [--metadata-url URL + --metadata-hash HASH] + ( --mainnet + | --testnet-magic NATURAL + ) + | --stake-verification-key STRING + | --stake-verification-key-file FILE + | --stake-script-file FILE + | --stake-address ADDRESS + ) + --out-file FILE + + Create a registration certificate. + Usage: cardano-cli babbage governance delegation-certificate ( --stake-verification-key STRING | --stake-verification-key-file FILE @@ -282,7 +472,7 @@ Usage: cardano-cli babbage governance delegation-certificate ) --out-file FILE - Post conway era governance command + Delegation certificate creation. Usage: cardano-cli babbage governance create-mir-certificate ( ( --reserves @@ -324,10 +514,57 @@ Usage: cardano-cli conway governance Conway era commands -Usage: cardano-cli conway governance delegation-certificate +Usage: cardano-cli conway governance + ( registration-certificate + | delegation-certificate + ) Era-based governance commands +Usage: cardano-cli conway governance registration-certificate + ( ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + ( --vrf-verification-key STRING + | --vrf-verification-key-file FILE + ) + --pool-pledge LOVELACE + --pool-cost LOVELACE + --pool-margin RATIONAL + ( --pool-reward-account-verification-key STRING + | --pool-reward-account-verification-key-file FILE + ) + ( --pool-owner-verification-key STRING + | --pool-owner-stake-verification-key-file FILE + ) + [ [--pool-relay-ipv4 STRING] + [--pool-relay-ipv6 STRING] + --pool-relay-port INT + | --single-host-pool-relay STRING + [--pool-relay-port INT] + | --multi-host-pool-relay STRING + ] + [--metadata-url URL + --metadata-hash HASH] + ( --mainnet + | --testnet-magic NATURAL + ) + | ( --stake-verification-key STRING + | --stake-verification-key-file FILE + | --stake-script-file FILE + | --stake-address ADDRESS + ) + --key-reg-deposit-amt NATURAL + | ( --drep-verification-key STRING + | --drep-verification-key-file FILE + | --drep-key-hash HASH + ) + --key-reg-deposit-amt NATURAL + ) + --out-file FILE + + Create a registration certificate. + Usage: cardano-cli conway governance delegation-certificate ( --stake-verification-key STRING | --stake-verification-key-file FILE @@ -351,19 +588,57 @@ Usage: cardano-cli conway governance delegation-certificate ) --out-file FILE - Post conway era governance command + Delegation certificate creation. Usage: cardano-cli latest governance Latest era commands (Babbage) Usage: cardano-cli latest governance - ( delegation-certificate + ( registration-certificate + | delegation-certificate | create-mir-certificate ) Era-based governance commands +Usage: cardano-cli latest governance registration-certificate + ( ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + ( --vrf-verification-key STRING + | --vrf-verification-key-file FILE + ) + --pool-pledge LOVELACE + --pool-cost LOVELACE + --pool-margin RATIONAL + ( --pool-reward-account-verification-key STRING + | --pool-reward-account-verification-key-file FILE + ) + ( --pool-owner-verification-key STRING + | --pool-owner-stake-verification-key-file FILE + ) + [ [--pool-relay-ipv4 STRING] + [--pool-relay-ipv6 STRING] + --pool-relay-port INT + | --single-host-pool-relay STRING + [--pool-relay-port INT] + | --multi-host-pool-relay STRING + ] + [--metadata-url URL + --metadata-hash HASH] + ( --mainnet + | --testnet-magic NATURAL + ) + | --stake-verification-key STRING + | --stake-verification-key-file FILE + | --stake-script-file FILE + | --stake-address ADDRESS + ) + --out-file FILE + + Create a registration certificate. + Usage: cardano-cli latest governance delegation-certificate ( --stake-verification-key STRING | --stake-verification-key-file FILE @@ -376,7 +651,7 @@ Usage: cardano-cli latest governance delegation-certificate ) --out-file FILE - Post conway era governance command + Delegation certificate creation. Usage: cardano-cli latest governance create-mir-certificate ( ( --reserves @@ -418,10 +693,57 @@ Usage: cardano-cli experimental governance Experimental era commands (Conway) -Usage: cardano-cli experimental governance delegation-certificate +Usage: cardano-cli experimental governance + ( registration-certificate + | delegation-certificate + ) Era-based governance commands +Usage: cardano-cli experimental governance registration-certificate + ( ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + ( --vrf-verification-key STRING + | --vrf-verification-key-file FILE + ) + --pool-pledge LOVELACE + --pool-cost LOVELACE + --pool-margin RATIONAL + ( --pool-reward-account-verification-key STRING + | --pool-reward-account-verification-key-file FILE + ) + ( --pool-owner-verification-key STRING + | --pool-owner-stake-verification-key-file FILE + ) + [ [--pool-relay-ipv4 STRING] + [--pool-relay-ipv6 STRING] + --pool-relay-port INT + | --single-host-pool-relay STRING + [--pool-relay-port INT] + | --multi-host-pool-relay STRING + ] + [--metadata-url URL + --metadata-hash HASH] + ( --mainnet + | --testnet-magic NATURAL + ) + | ( --stake-verification-key STRING + | --stake-verification-key-file FILE + | --stake-script-file FILE + | --stake-address ADDRESS + ) + --key-reg-deposit-amt NATURAL + | ( --drep-verification-key STRING + | --drep-verification-key-file FILE + | --drep-key-hash HASH + ) + --key-reg-deposit-amt NATURAL + ) + --out-file FILE + + Create a registration certificate. + Usage: cardano-cli experimental governance delegation-certificate ( --stake-verification-key STRING | --stake-verification-key-file FILE @@ -445,7 +767,7 @@ Usage: cardano-cli experimental governance delegation-certificate ) --out-file FILE - Post conway era governance command + Delegation certificate creation. Usage: cardano-cli legacy Legacy commands @@ -1808,10 +2130,51 @@ Usage: cardano-cli legacy address info --address ADDRESS [--out-file FILE] Print information about an address. -Usage: cardano-cli governance (delegation-certificate | create-mir-certificate) +Usage: cardano-cli governance + ( registration-certificate + | delegation-certificate + | create-mir-certificate + ) Era-based governance commands +Usage: cardano-cli governance registration-certificate + ( ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + ( --vrf-verification-key STRING + | --vrf-verification-key-file FILE + ) + --pool-pledge LOVELACE + --pool-cost LOVELACE + --pool-margin RATIONAL + ( --pool-reward-account-verification-key STRING + | --pool-reward-account-verification-key-file FILE + ) + ( --pool-owner-verification-key STRING + | --pool-owner-stake-verification-key-file FILE + ) + [ [--pool-relay-ipv4 STRING] + [--pool-relay-ipv6 STRING] + --pool-relay-port INT + | --single-host-pool-relay STRING + [--pool-relay-port INT] + | --multi-host-pool-relay STRING + ] + [--metadata-url URL + --metadata-hash HASH] + ( --mainnet + | --testnet-magic NATURAL + ) + | --stake-verification-key STRING + | --stake-verification-key-file FILE + | --stake-script-file FILE + | --stake-address ADDRESS + ) + --out-file FILE + + Create a registration certificate. + Usage: cardano-cli governance delegation-certificate ( --stake-verification-key STRING | --stake-verification-key-file FILE @@ -1824,7 +2187,7 @@ Usage: cardano-cli governance delegation-certificate ) --out-file FILE - Post conway era governance command + Delegation certificate creation. Usage: cardano-cli governance create-mir-certificate ( ( --reserves diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_governance.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_governance.cli index 57c92ebb0b..0a245d22b4 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_governance.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_governance.cli @@ -1,5 +1,6 @@ Usage: cardano-cli allegra governance - ( delegation-certificate + ( registration-certificate + | delegation-certificate | create-mir-certificate ) @@ -9,6 +10,7 @@ Available options: -h,--help Show this help text Available commands: - delegation-certificate Post conway era governance command + registration-certificate Create a registration certificate. + delegation-certificate Delegation certificate creation. create-mir-certificate Create an MIR (Move Instantaneous Rewards) certificate diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_governance_delegation-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_governance_delegation-certificate.cli index c17db0a89b..0901150935 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_governance_delegation-certificate.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_governance_delegation-certificate.cli @@ -10,7 +10,7 @@ Usage: cardano-cli allegra governance delegation-certificate ) --out-file FILE - Post conway era governance command + Delegation certificate creation. Available options: --stake-verification-key STRING diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_governance_registration-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_governance_registration-certificate.cli new file mode 100644 index 0000000000..a4eaa5eda7 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_governance_registration-certificate.cli @@ -0,0 +1,84 @@ +Usage: cardano-cli allegra governance registration-certificate + ( ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + ( --vrf-verification-key STRING + | --vrf-verification-key-file FILE + ) + --pool-pledge LOVELACE + --pool-cost LOVELACE + --pool-margin RATIONAL + ( --pool-reward-account-verification-key STRING + | --pool-reward-account-verification-key-file FILE + ) + ( --pool-owner-verification-key STRING + | --pool-owner-stake-verification-key-file FILE + ) + [ [--pool-relay-ipv4 STRING] + [--pool-relay-ipv6 STRING] + --pool-relay-port INT + | --single-host-pool-relay STRING + [--pool-relay-port INT] + | --multi-host-pool-relay STRING + ] + [--metadata-url URL + --metadata-hash HASH] + ( --mainnet + | --testnet-magic NATURAL + ) + | --stake-verification-key STRING + | --stake-verification-key-file FILE + | --stake-script-file FILE + | --stake-address ADDRESS + ) + --out-file FILE + + Create a registration certificate. + +Available options: + --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. + --vrf-verification-key STRING + VRF verification key (Bech32 or hex-encoded). + --vrf-verification-key-file FILE + Filepath of the VRF verification key. + --pool-pledge LOVELACE The stake pool's pledge. + --pool-cost LOVELACE The stake pool's cost. + --pool-margin RATIONAL The stake pool's margin. + --pool-reward-account-verification-key STRING + Reward account stake verification key (Bech32 or + hex-encoded). + --pool-reward-account-verification-key-file FILE + Filepath of the reward account stake verification + key. + --pool-owner-verification-key STRING + Pool owner stake verification key (Bech32 or + hex-encoded). + --pool-owner-stake-verification-key-file FILE + Filepath of the pool owner stake verification key. + --pool-relay-ipv4 STRING The stake pool relay's IPv4 address + --pool-relay-ipv6 STRING The stake pool relay's IPv6 address + --pool-relay-port INT The stake pool relay's port + --single-host-pool-relay STRING + The stake pool relay's DNS name that corresponds to + an A or AAAA DNS record + --pool-relay-port INT The stake pool relay's port + --multi-host-pool-relay STRING + The stake pool relay's DNS name that corresponds to + an SRV DNS record + --metadata-url URL Pool metadata URL (maximum length of 64 characters). + --metadata-hash HASH Pool metadata hash. + --mainnet Use the mainnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --testnet-magic NATURAL Specify a testnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --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). + --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.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_governance.cli index 8c02e88814..a2912b6041 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_governance.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_governance.cli @@ -1,5 +1,6 @@ Usage: cardano-cli alonzo governance - ( delegation-certificate + ( registration-certificate + | delegation-certificate | create-mir-certificate ) @@ -9,6 +10,7 @@ Available options: -h,--help Show this help text Available commands: - delegation-certificate Post conway era governance command + registration-certificate Create a registration certificate. + delegation-certificate Delegation certificate creation. create-mir-certificate Create an MIR (Move Instantaneous Rewards) certificate diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_governance_delegation-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_governance_delegation-certificate.cli index 99bf257e40..7a032d8798 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_governance_delegation-certificate.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_governance_delegation-certificate.cli @@ -10,7 +10,7 @@ Usage: cardano-cli alonzo governance delegation-certificate ) --out-file FILE - Post conway era governance command + Delegation certificate creation. Available options: --stake-verification-key STRING diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_governance_registration-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_governance_registration-certificate.cli new file mode 100644 index 0000000000..b605540358 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_governance_registration-certificate.cli @@ -0,0 +1,84 @@ +Usage: cardano-cli alonzo governance registration-certificate + ( ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + ( --vrf-verification-key STRING + | --vrf-verification-key-file FILE + ) + --pool-pledge LOVELACE + --pool-cost LOVELACE + --pool-margin RATIONAL + ( --pool-reward-account-verification-key STRING + | --pool-reward-account-verification-key-file FILE + ) + ( --pool-owner-verification-key STRING + | --pool-owner-stake-verification-key-file FILE + ) + [ [--pool-relay-ipv4 STRING] + [--pool-relay-ipv6 STRING] + --pool-relay-port INT + | --single-host-pool-relay STRING + [--pool-relay-port INT] + | --multi-host-pool-relay STRING + ] + [--metadata-url URL + --metadata-hash HASH] + ( --mainnet + | --testnet-magic NATURAL + ) + | --stake-verification-key STRING + | --stake-verification-key-file FILE + | --stake-script-file FILE + | --stake-address ADDRESS + ) + --out-file FILE + + Create a registration certificate. + +Available options: + --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. + --vrf-verification-key STRING + VRF verification key (Bech32 or hex-encoded). + --vrf-verification-key-file FILE + Filepath of the VRF verification key. + --pool-pledge LOVELACE The stake pool's pledge. + --pool-cost LOVELACE The stake pool's cost. + --pool-margin RATIONAL The stake pool's margin. + --pool-reward-account-verification-key STRING + Reward account stake verification key (Bech32 or + hex-encoded). + --pool-reward-account-verification-key-file FILE + Filepath of the reward account stake verification + key. + --pool-owner-verification-key STRING + Pool owner stake verification key (Bech32 or + hex-encoded). + --pool-owner-stake-verification-key-file FILE + Filepath of the pool owner stake verification key. + --pool-relay-ipv4 STRING The stake pool relay's IPv4 address + --pool-relay-ipv6 STRING The stake pool relay's IPv6 address + --pool-relay-port INT The stake pool relay's port + --single-host-pool-relay STRING + The stake pool relay's DNS name that corresponds to + an A or AAAA DNS record + --pool-relay-port INT The stake pool relay's port + --multi-host-pool-relay STRING + The stake pool relay's DNS name that corresponds to + an SRV DNS record + --metadata-url URL Pool metadata URL (maximum length of 64 characters). + --metadata-hash HASH Pool metadata hash. + --mainnet Use the mainnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --testnet-magic NATURAL Specify a testnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --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). + --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.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance.cli index 9d4ba97854..aab3736f76 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance.cli @@ -1,5 +1,6 @@ Usage: cardano-cli babbage governance - ( delegation-certificate + ( registration-certificate + | delegation-certificate | create-mir-certificate ) @@ -9,6 +10,7 @@ Available options: -h,--help Show this help text Available commands: - delegation-certificate Post conway era governance command + registration-certificate Create a registration certificate. + delegation-certificate Delegation certificate creation. create-mir-certificate Create an MIR (Move Instantaneous Rewards) certificate diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance_delegation-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance_delegation-certificate.cli index 972ba9c058..5fb974a9da 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance_delegation-certificate.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance_delegation-certificate.cli @@ -10,7 +10,7 @@ Usage: cardano-cli babbage governance delegation-certificate ) --out-file FILE - Post conway era governance command + Delegation certificate creation. Available options: --stake-verification-key STRING diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance_registration-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance_registration-certificate.cli new file mode 100644 index 0000000000..91a2f69f21 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance_registration-certificate.cli @@ -0,0 +1,84 @@ +Usage: cardano-cli babbage governance registration-certificate + ( ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + ( --vrf-verification-key STRING + | --vrf-verification-key-file FILE + ) + --pool-pledge LOVELACE + --pool-cost LOVELACE + --pool-margin RATIONAL + ( --pool-reward-account-verification-key STRING + | --pool-reward-account-verification-key-file FILE + ) + ( --pool-owner-verification-key STRING + | --pool-owner-stake-verification-key-file FILE + ) + [ [--pool-relay-ipv4 STRING] + [--pool-relay-ipv6 STRING] + --pool-relay-port INT + | --single-host-pool-relay STRING + [--pool-relay-port INT] + | --multi-host-pool-relay STRING + ] + [--metadata-url URL + --metadata-hash HASH] + ( --mainnet + | --testnet-magic NATURAL + ) + | --stake-verification-key STRING + | --stake-verification-key-file FILE + | --stake-script-file FILE + | --stake-address ADDRESS + ) + --out-file FILE + + Create a registration certificate. + +Available options: + --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. + --vrf-verification-key STRING + VRF verification key (Bech32 or hex-encoded). + --vrf-verification-key-file FILE + Filepath of the VRF verification key. + --pool-pledge LOVELACE The stake pool's pledge. + --pool-cost LOVELACE The stake pool's cost. + --pool-margin RATIONAL The stake pool's margin. + --pool-reward-account-verification-key STRING + Reward account stake verification key (Bech32 or + hex-encoded). + --pool-reward-account-verification-key-file FILE + Filepath of the reward account stake verification + key. + --pool-owner-verification-key STRING + Pool owner stake verification key (Bech32 or + hex-encoded). + --pool-owner-stake-verification-key-file FILE + Filepath of the pool owner stake verification key. + --pool-relay-ipv4 STRING The stake pool relay's IPv4 address + --pool-relay-ipv6 STRING The stake pool relay's IPv6 address + --pool-relay-port INT The stake pool relay's port + --single-host-pool-relay STRING + The stake pool relay's DNS name that corresponds to + an A or AAAA DNS record + --pool-relay-port INT The stake pool relay's port + --multi-host-pool-relay STRING + The stake pool relay's DNS name that corresponds to + an SRV DNS record + --metadata-url URL Pool metadata URL (maximum length of 64 characters). + --metadata-hash HASH Pool metadata hash. + --mainnet Use the mainnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --testnet-magic NATURAL Specify a testnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --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). + --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.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance.cli index d23c8f1883..1a04ac7126 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance.cli @@ -1,4 +1,7 @@ -Usage: cardano-cli conway governance delegation-certificate +Usage: cardano-cli conway governance + ( registration-certificate + | delegation-certificate + ) Era-based governance commands @@ -6,4 +9,5 @@ Available options: -h,--help Show this help text Available commands: - delegation-certificate Post conway era governance command + registration-certificate Create a registration certificate. + delegation-certificate Delegation certificate creation. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_delegation-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_delegation-certificate.cli index 8baaba22f5..868a3cd67a 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_delegation-certificate.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_delegation-certificate.cli @@ -21,7 +21,7 @@ Usage: cardano-cli conway governance delegation-certificate ) --out-file FILE - Post conway era governance command + Delegation certificate creation. Available options: --stake-verification-key STRING diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_registration-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_registration-certificate.cli new file mode 100644 index 0000000000..0bf7de5cf4 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_registration-certificate.cli @@ -0,0 +1,102 @@ +Usage: cardano-cli conway governance registration-certificate + ( ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + ( --vrf-verification-key STRING + | --vrf-verification-key-file FILE + ) + --pool-pledge LOVELACE + --pool-cost LOVELACE + --pool-margin RATIONAL + ( --pool-reward-account-verification-key STRING + | --pool-reward-account-verification-key-file FILE + ) + ( --pool-owner-verification-key STRING + | --pool-owner-stake-verification-key-file FILE + ) + [ [--pool-relay-ipv4 STRING] + [--pool-relay-ipv6 STRING] + --pool-relay-port INT + | --single-host-pool-relay STRING + [--pool-relay-port INT] + | --multi-host-pool-relay STRING + ] + [--metadata-url URL + --metadata-hash HASH] + ( --mainnet + | --testnet-magic NATURAL + ) + | ( --stake-verification-key STRING + | --stake-verification-key-file FILE + | --stake-script-file FILE + | --stake-address ADDRESS + ) + --key-reg-deposit-amt NATURAL + | ( --drep-verification-key STRING + | --drep-verification-key-file FILE + | --drep-key-hash HASH + ) + --key-reg-deposit-amt NATURAL + ) + --out-file FILE + + Create a registration certificate. + +Available options: + --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. + --vrf-verification-key STRING + VRF verification key (Bech32 or hex-encoded). + --vrf-verification-key-file FILE + Filepath of the VRF verification key. + --pool-pledge LOVELACE The stake pool's pledge. + --pool-cost LOVELACE The stake pool's cost. + --pool-margin RATIONAL The stake pool's margin. + --pool-reward-account-verification-key STRING + Reward account stake verification key (Bech32 or + hex-encoded). + --pool-reward-account-verification-key-file FILE + Filepath of the reward account stake verification + key. + --pool-owner-verification-key STRING + Pool owner stake verification key (Bech32 or + hex-encoded). + --pool-owner-stake-verification-key-file FILE + Filepath of the pool owner stake verification key. + --pool-relay-ipv4 STRING The stake pool relay's IPv4 address + --pool-relay-ipv6 STRING The stake pool relay's IPv6 address + --pool-relay-port INT The stake pool relay's port + --single-host-pool-relay STRING + The stake pool relay's DNS name that corresponds to + an A or AAAA DNS record + --pool-relay-port INT The stake pool relay's port + --multi-host-pool-relay STRING + The stake pool relay's DNS name that corresponds to + an SRV DNS record + --metadata-url URL Pool metadata URL (maximum length of 64 characters). + --metadata-hash HASH Pool metadata hash. + --mainnet Use the mainnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --testnet-magic NATURAL Specify a testnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --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). + --key-reg-deposit-amt NATURAL + Key registration deposit amount. + --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. + --key-reg-deposit-amt NATURAL + Key registration deposit amount. + --out-file FILE The output file. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/experimental_governance.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/experimental_governance.cli index ef48b7577d..131289b24f 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/experimental_governance.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/experimental_governance.cli @@ -1,4 +1,7 @@ -Usage: cardano-cli experimental governance delegation-certificate +Usage: cardano-cli experimental governance + ( registration-certificate + | delegation-certificate + ) Era-based governance commands @@ -6,4 +9,5 @@ Available options: -h,--help Show this help text Available commands: - delegation-certificate Post conway era governance command + registration-certificate Create a registration certificate. + delegation-certificate Delegation certificate creation. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/experimental_governance_delegation-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/experimental_governance_delegation-certificate.cli index 93a50bad13..e07bd7eeef 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/experimental_governance_delegation-certificate.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/experimental_governance_delegation-certificate.cli @@ -21,7 +21,7 @@ Usage: cardano-cli experimental governance delegation-certificate ) --out-file FILE - Post conway era governance command + Delegation certificate creation. Available options: --stake-verification-key STRING diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/experimental_governance_registration-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/experimental_governance_registration-certificate.cli new file mode 100644 index 0000000000..bace24655a --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/experimental_governance_registration-certificate.cli @@ -0,0 +1,102 @@ +Usage: cardano-cli experimental governance registration-certificate + ( ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + ( --vrf-verification-key STRING + | --vrf-verification-key-file FILE + ) + --pool-pledge LOVELACE + --pool-cost LOVELACE + --pool-margin RATIONAL + ( --pool-reward-account-verification-key STRING + | --pool-reward-account-verification-key-file FILE + ) + ( --pool-owner-verification-key STRING + | --pool-owner-stake-verification-key-file FILE + ) + [ [--pool-relay-ipv4 STRING] + [--pool-relay-ipv6 STRING] + --pool-relay-port INT + | --single-host-pool-relay STRING + [--pool-relay-port INT] + | --multi-host-pool-relay STRING + ] + [--metadata-url URL + --metadata-hash HASH] + ( --mainnet + | --testnet-magic NATURAL + ) + | ( --stake-verification-key STRING + | --stake-verification-key-file FILE + | --stake-script-file FILE + | --stake-address ADDRESS + ) + --key-reg-deposit-amt NATURAL + | ( --drep-verification-key STRING + | --drep-verification-key-file FILE + | --drep-key-hash HASH + ) + --key-reg-deposit-amt NATURAL + ) + --out-file FILE + + Create a registration certificate. + +Available options: + --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. + --vrf-verification-key STRING + VRF verification key (Bech32 or hex-encoded). + --vrf-verification-key-file FILE + Filepath of the VRF verification key. + --pool-pledge LOVELACE The stake pool's pledge. + --pool-cost LOVELACE The stake pool's cost. + --pool-margin RATIONAL The stake pool's margin. + --pool-reward-account-verification-key STRING + Reward account stake verification key (Bech32 or + hex-encoded). + --pool-reward-account-verification-key-file FILE + Filepath of the reward account stake verification + key. + --pool-owner-verification-key STRING + Pool owner stake verification key (Bech32 or + hex-encoded). + --pool-owner-stake-verification-key-file FILE + Filepath of the pool owner stake verification key. + --pool-relay-ipv4 STRING The stake pool relay's IPv4 address + --pool-relay-ipv6 STRING The stake pool relay's IPv6 address + --pool-relay-port INT The stake pool relay's port + --single-host-pool-relay STRING + The stake pool relay's DNS name that corresponds to + an A or AAAA DNS record + --pool-relay-port INT The stake pool relay's port + --multi-host-pool-relay STRING + The stake pool relay's DNS name that corresponds to + an SRV DNS record + --metadata-url URL Pool metadata URL (maximum length of 64 characters). + --metadata-hash HASH Pool metadata hash. + --mainnet Use the mainnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --testnet-magic NATURAL Specify a testnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --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). + --key-reg-deposit-amt NATURAL + Key registration deposit amount. + --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. + --key-reg-deposit-amt NATURAL + Key registration deposit amount. + --out-file FILE The output file. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/governance.cli index b310a09298..c4acf66df1 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/governance.cli @@ -1,4 +1,8 @@ -Usage: cardano-cli governance (delegation-certificate | create-mir-certificate) +Usage: cardano-cli governance + ( registration-certificate + | delegation-certificate + | create-mir-certificate + ) Era-based governance commands @@ -6,6 +10,7 @@ Available options: -h,--help Show this help text Available commands: - delegation-certificate Post conway era governance command + registration-certificate Create a registration certificate. + delegation-certificate Delegation certificate creation. create-mir-certificate Create an MIR (Move Instantaneous Rewards) certificate diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_action_create-action.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_action_create-action.cli index 7a78c35a18..70ffc78a06 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_action_create-action.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_action_create-action.cli @@ -1,5 +1,9 @@ Invalid argument `action' -Usage: cardano-cli governance (delegation-certificate | create-mir-certificate) +Usage: cardano-cli governance + ( registration-certificate + | delegation-certificate + | create-mir-certificate + ) Era-based governance commands diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_action_create-action_create-constitution.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_action_create-action_create-constitution.cli index 7a78c35a18..70ffc78a06 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_action_create-action_create-constitution.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_action_create-action_create-constitution.cli @@ -1,5 +1,9 @@ Invalid argument `action' -Usage: cardano-cli governance (delegation-certificate | create-mir-certificate) +Usage: cardano-cli governance + ( registration-certificate + | delegation-certificate + | create-mir-certificate + ) Era-based governance commands diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_answer-poll.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_answer-poll.cli index c10b80901a..42f9835c1d 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_answer-poll.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_answer-poll.cli @@ -1,5 +1,9 @@ Invalid argument `answer-poll' -Usage: cardano-cli governance (delegation-certificate | create-mir-certificate) +Usage: cardano-cli governance + ( registration-certificate + | delegation-certificate + | create-mir-certificate + ) Era-based governance commands diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_create-genesis-key-delegation-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_create-genesis-key-delegation-certificate.cli index a47486a2ac..675d63d529 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_create-genesis-key-delegation-certificate.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_create-genesis-key-delegation-certificate.cli @@ -1,5 +1,9 @@ Invalid argument `create-genesis-key-delegation-certificate' -Usage: cardano-cli governance (delegation-certificate | create-mir-certificate) +Usage: cardano-cli governance + ( registration-certificate + | delegation-certificate + | create-mir-certificate + ) Era-based governance commands diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_create-poll.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_create-poll.cli index b4c51c527e..a1f27722d1 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_create-poll.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_create-poll.cli @@ -1,5 +1,9 @@ Invalid argument `create-poll' -Usage: cardano-cli governance (delegation-certificate | create-mir-certificate) +Usage: cardano-cli governance + ( registration-certificate + | delegation-certificate + | create-mir-certificate + ) Era-based governance commands diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_create-update-proposal.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_create-update-proposal.cli index d591252e90..acde910dd3 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_create-update-proposal.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_create-update-proposal.cli @@ -1,5 +1,9 @@ Invalid argument `create-update-proposal' -Usage: cardano-cli governance (delegation-certificate | create-mir-certificate) +Usage: cardano-cli governance + ( registration-certificate + | delegation-certificate + | create-mir-certificate + ) Era-based governance commands diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_delegation-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_delegation-certificate.cli index f33b964243..cee3d31b6a 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_delegation-certificate.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_delegation-certificate.cli @@ -10,7 +10,7 @@ Usage: cardano-cli governance delegation-certificate ) --out-file FILE - Post conway era governance command + Delegation certificate creation. Available options: --stake-verification-key STRING diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_registration-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_registration-certificate.cli new file mode 100644 index 0000000000..b72fb52275 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_registration-certificate.cli @@ -0,0 +1,84 @@ +Usage: cardano-cli governance registration-certificate + ( ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + ( --vrf-verification-key STRING + | --vrf-verification-key-file FILE + ) + --pool-pledge LOVELACE + --pool-cost LOVELACE + --pool-margin RATIONAL + ( --pool-reward-account-verification-key STRING + | --pool-reward-account-verification-key-file FILE + ) + ( --pool-owner-verification-key STRING + | --pool-owner-stake-verification-key-file FILE + ) + [ [--pool-relay-ipv4 STRING] + [--pool-relay-ipv6 STRING] + --pool-relay-port INT + | --single-host-pool-relay STRING + [--pool-relay-port INT] + | --multi-host-pool-relay STRING + ] + [--metadata-url URL + --metadata-hash HASH] + ( --mainnet + | --testnet-magic NATURAL + ) + | --stake-verification-key STRING + | --stake-verification-key-file FILE + | --stake-script-file FILE + | --stake-address ADDRESS + ) + --out-file FILE + + Create a registration certificate. + +Available options: + --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. + --vrf-verification-key STRING + VRF verification key (Bech32 or hex-encoded). + --vrf-verification-key-file FILE + Filepath of the VRF verification key. + --pool-pledge LOVELACE The stake pool's pledge. + --pool-cost LOVELACE The stake pool's cost. + --pool-margin RATIONAL The stake pool's margin. + --pool-reward-account-verification-key STRING + Reward account stake verification key (Bech32 or + hex-encoded). + --pool-reward-account-verification-key-file FILE + Filepath of the reward account stake verification + key. + --pool-owner-verification-key STRING + Pool owner stake verification key (Bech32 or + hex-encoded). + --pool-owner-stake-verification-key-file FILE + Filepath of the pool owner stake verification key. + --pool-relay-ipv4 STRING The stake pool relay's IPv4 address + --pool-relay-ipv6 STRING The stake pool relay's IPv6 address + --pool-relay-port INT The stake pool relay's port + --single-host-pool-relay STRING + The stake pool relay's DNS name that corresponds to + an A or AAAA DNS record + --pool-relay-port INT The stake pool relay's port + --multi-host-pool-relay STRING + The stake pool relay's DNS name that corresponds to + an SRV DNS record + --metadata-url URL Pool metadata URL (maximum length of 64 characters). + --metadata-hash HASH Pool metadata hash. + --mainnet Use the mainnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --testnet-magic NATURAL Specify a testnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --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). + --out-file FILE The output file. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_verify-poll.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_verify-poll.cli index 31f06684a7..f0c0265f25 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_verify-poll.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_verify-poll.cli @@ -1,5 +1,9 @@ Invalid argument `verify-poll' -Usage: cardano-cli governance (delegation-certificate | create-mir-certificate) +Usage: cardano-cli governance + ( registration-certificate + | delegation-certificate + | create-mir-certificate + ) Era-based governance commands diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_vote_create-vote.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_vote_create-vote.cli index 5aead13a71..0a392afb49 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_vote_create-vote.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_vote_create-vote.cli @@ -1,5 +1,9 @@ Invalid argument `vote' -Usage: cardano-cli governance (delegation-certificate | create-mir-certificate) +Usage: cardano-cli governance + ( registration-certificate + | delegation-certificate + | create-mir-certificate + ) Era-based governance commands diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance.cli index 0170f3cb45..4d95881f50 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance.cli @@ -1,5 +1,6 @@ Usage: cardano-cli latest governance - ( delegation-certificate + ( registration-certificate + | delegation-certificate | create-mir-certificate ) @@ -9,6 +10,7 @@ Available options: -h,--help Show this help text Available commands: - delegation-certificate Post conway era governance command + registration-certificate Create a registration certificate. + delegation-certificate Delegation certificate creation. create-mir-certificate Create an MIR (Move Instantaneous Rewards) certificate diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance_delegation-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance_delegation-certificate.cli index 7de97019dc..214ee1750b 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance_delegation-certificate.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance_delegation-certificate.cli @@ -10,7 +10,7 @@ Usage: cardano-cli latest governance delegation-certificate ) --out-file FILE - Post conway era governance command + Delegation certificate creation. Available options: --stake-verification-key STRING diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance_registration-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance_registration-certificate.cli new file mode 100644 index 0000000000..a26bd4d35a --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance_registration-certificate.cli @@ -0,0 +1,84 @@ +Usage: cardano-cli latest governance registration-certificate + ( ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + ( --vrf-verification-key STRING + | --vrf-verification-key-file FILE + ) + --pool-pledge LOVELACE + --pool-cost LOVELACE + --pool-margin RATIONAL + ( --pool-reward-account-verification-key STRING + | --pool-reward-account-verification-key-file FILE + ) + ( --pool-owner-verification-key STRING + | --pool-owner-stake-verification-key-file FILE + ) + [ [--pool-relay-ipv4 STRING] + [--pool-relay-ipv6 STRING] + --pool-relay-port INT + | --single-host-pool-relay STRING + [--pool-relay-port INT] + | --multi-host-pool-relay STRING + ] + [--metadata-url URL + --metadata-hash HASH] + ( --mainnet + | --testnet-magic NATURAL + ) + | --stake-verification-key STRING + | --stake-verification-key-file FILE + | --stake-script-file FILE + | --stake-address ADDRESS + ) + --out-file FILE + + Create a registration certificate. + +Available options: + --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. + --vrf-verification-key STRING + VRF verification key (Bech32 or hex-encoded). + --vrf-verification-key-file FILE + Filepath of the VRF verification key. + --pool-pledge LOVELACE The stake pool's pledge. + --pool-cost LOVELACE The stake pool's cost. + --pool-margin RATIONAL The stake pool's margin. + --pool-reward-account-verification-key STRING + Reward account stake verification key (Bech32 or + hex-encoded). + --pool-reward-account-verification-key-file FILE + Filepath of the reward account stake verification + key. + --pool-owner-verification-key STRING + Pool owner stake verification key (Bech32 or + hex-encoded). + --pool-owner-stake-verification-key-file FILE + Filepath of the pool owner stake verification key. + --pool-relay-ipv4 STRING The stake pool relay's IPv4 address + --pool-relay-ipv6 STRING The stake pool relay's IPv6 address + --pool-relay-port INT The stake pool relay's port + --single-host-pool-relay STRING + The stake pool relay's DNS name that corresponds to + an A or AAAA DNS record + --pool-relay-port INT The stake pool relay's port + --multi-host-pool-relay STRING + The stake pool relay's DNS name that corresponds to + an SRV DNS record + --metadata-url URL Pool metadata URL (maximum length of 64 characters). + --metadata-hash HASH Pool metadata hash. + --mainnet Use the mainnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --testnet-magic NATURAL Specify a testnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --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). + --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.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_governance.cli index 0da7f35afc..86a73397a5 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_governance.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_governance.cli @@ -1,5 +1,6 @@ Usage: cardano-cli mary governance - ( delegation-certificate + ( registration-certificate + | delegation-certificate | create-mir-certificate ) @@ -9,6 +10,7 @@ Available options: -h,--help Show this help text Available commands: - delegation-certificate Post conway era governance command + registration-certificate Create a registration certificate. + delegation-certificate Delegation certificate creation. create-mir-certificate Create an MIR (Move Instantaneous Rewards) certificate diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_governance_delegation-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_governance_delegation-certificate.cli index d9eeab79b6..6b7eaac261 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_governance_delegation-certificate.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_governance_delegation-certificate.cli @@ -10,7 +10,7 @@ Usage: cardano-cli mary governance delegation-certificate ) --out-file FILE - Post conway era governance command + Delegation certificate creation. Available options: --stake-verification-key STRING diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_governance_registration-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_governance_registration-certificate.cli new file mode 100644 index 0000000000..8b0bc898ed --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_governance_registration-certificate.cli @@ -0,0 +1,84 @@ +Usage: cardano-cli mary governance registration-certificate + ( ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + ( --vrf-verification-key STRING + | --vrf-verification-key-file FILE + ) + --pool-pledge LOVELACE + --pool-cost LOVELACE + --pool-margin RATIONAL + ( --pool-reward-account-verification-key STRING + | --pool-reward-account-verification-key-file FILE + ) + ( --pool-owner-verification-key STRING + | --pool-owner-stake-verification-key-file FILE + ) + [ [--pool-relay-ipv4 STRING] + [--pool-relay-ipv6 STRING] + --pool-relay-port INT + | --single-host-pool-relay STRING + [--pool-relay-port INT] + | --multi-host-pool-relay STRING + ] + [--metadata-url URL + --metadata-hash HASH] + ( --mainnet + | --testnet-magic NATURAL + ) + | --stake-verification-key STRING + | --stake-verification-key-file FILE + | --stake-script-file FILE + | --stake-address ADDRESS + ) + --out-file FILE + + Create a registration certificate. + +Available options: + --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. + --vrf-verification-key STRING + VRF verification key (Bech32 or hex-encoded). + --vrf-verification-key-file FILE + Filepath of the VRF verification key. + --pool-pledge LOVELACE The stake pool's pledge. + --pool-cost LOVELACE The stake pool's cost. + --pool-margin RATIONAL The stake pool's margin. + --pool-reward-account-verification-key STRING + Reward account stake verification key (Bech32 or + hex-encoded). + --pool-reward-account-verification-key-file FILE + Filepath of the reward account stake verification + key. + --pool-owner-verification-key STRING + Pool owner stake verification key (Bech32 or + hex-encoded). + --pool-owner-stake-verification-key-file FILE + Filepath of the pool owner stake verification key. + --pool-relay-ipv4 STRING The stake pool relay's IPv4 address + --pool-relay-ipv6 STRING The stake pool relay's IPv6 address + --pool-relay-port INT The stake pool relay's port + --single-host-pool-relay STRING + The stake pool relay's DNS name that corresponds to + an A or AAAA DNS record + --pool-relay-port INT The stake pool relay's port + --multi-host-pool-relay STRING + The stake pool relay's DNS name that corresponds to + an SRV DNS record + --metadata-url URL Pool metadata URL (maximum length of 64 characters). + --metadata-hash HASH Pool metadata hash. + --mainnet Use the mainnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --testnet-magic NATURAL Specify a testnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --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). + --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.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_governance.cli index e84faed18b..811260ebb9 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_governance.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_governance.cli @@ -1,5 +1,6 @@ Usage: cardano-cli shelley governance - ( delegation-certificate + ( registration-certificate + | delegation-certificate | create-mir-certificate ) @@ -9,6 +10,7 @@ Available options: -h,--help Show this help text Available commands: - delegation-certificate Post conway era governance command + registration-certificate Create a registration certificate. + delegation-certificate Delegation certificate creation. create-mir-certificate Create an MIR (Move Instantaneous Rewards) certificate diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_governance_delegation-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_governance_delegation-certificate.cli index be432d1cfa..98e2b37a7e 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_governance_delegation-certificate.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_governance_delegation-certificate.cli @@ -10,7 +10,7 @@ Usage: cardano-cli shelley governance delegation-certificate ) --out-file FILE - Post conway era governance command + Delegation certificate creation. Available options: --stake-verification-key STRING diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_governance_registration-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_governance_registration-certificate.cli new file mode 100644 index 0000000000..624a978000 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_governance_registration-certificate.cli @@ -0,0 +1,84 @@ +Usage: cardano-cli shelley governance registration-certificate + ( ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + ( --vrf-verification-key STRING + | --vrf-verification-key-file FILE + ) + --pool-pledge LOVELACE + --pool-cost LOVELACE + --pool-margin RATIONAL + ( --pool-reward-account-verification-key STRING + | --pool-reward-account-verification-key-file FILE + ) + ( --pool-owner-verification-key STRING + | --pool-owner-stake-verification-key-file FILE + ) + [ [--pool-relay-ipv4 STRING] + [--pool-relay-ipv6 STRING] + --pool-relay-port INT + | --single-host-pool-relay STRING + [--pool-relay-port INT] + | --multi-host-pool-relay STRING + ] + [--metadata-url URL + --metadata-hash HASH] + ( --mainnet + | --testnet-magic NATURAL + ) + | --stake-verification-key STRING + | --stake-verification-key-file FILE + | --stake-script-file FILE + | --stake-address ADDRESS + ) + --out-file FILE + + Create a registration certificate. + +Available options: + --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. + --vrf-verification-key STRING + VRF verification key (Bech32 or hex-encoded). + --vrf-verification-key-file FILE + Filepath of the VRF verification key. + --pool-pledge LOVELACE The stake pool's pledge. + --pool-cost LOVELACE The stake pool's cost. + --pool-margin RATIONAL The stake pool's margin. + --pool-reward-account-verification-key STRING + Reward account stake verification key (Bech32 or + hex-encoded). + --pool-reward-account-verification-key-file FILE + Filepath of the reward account stake verification + key. + --pool-owner-verification-key STRING + Pool owner stake verification key (Bech32 or + hex-encoded). + --pool-owner-stake-verification-key-file FILE + Filepath of the pool owner stake verification key. + --pool-relay-ipv4 STRING The stake pool relay's IPv4 address + --pool-relay-ipv6 STRING The stake pool relay's IPv6 address + --pool-relay-port INT The stake pool relay's port + --single-host-pool-relay STRING + The stake pool relay's DNS name that corresponds to + an A or AAAA DNS record + --pool-relay-port INT The stake pool relay's port + --multi-host-pool-relay STRING + The stake pool relay's DNS name that corresponds to + an SRV DNS record + --metadata-url URL Pool metadata URL (maximum length of 64 characters). + --metadata-hash HASH Pool metadata hash. + --mainnet Use the mainnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --testnet-magic NATURAL Specify a testnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --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). + --out-file FILE The output file. + -h,--help Show this help text