From 41c4e8ff37ccfb6b633a65ffbdfaac9ce7ad5ba8 Mon Sep 17 00:00:00 2001 From: John Ky Date: Thu, 14 Sep 2023 14:36:35 +1000 Subject: [PATCH] Era-based stake-pool command --- .../src/Cardano/CLI/EraBased/Commands.hs | 9 + cardano-cli/src/Cardano/CLI/EraBased/Run.hs | 4 + .../src/Cardano/CLI/EraBased/Run/StakePool.hs | 40 +- .../src/Cardano/CLI/Legacy/Run/StakePool.hs | 10 +- .../cardano-cli-golden/files/golden/help.cli | 455 ++++++++++++++++++ .../files/golden/help/allegra.cli | 2 + .../files/golden/help/allegra_stake-pool.cli | 18 + ..._stake-pool_deregistration-certificate.cli | 17 + .../golden/help/allegra_stake-pool_id.cli | 18 + .../help/allegra_stake-pool_metadata-hash.cli | 10 + ...ra_stake-pool_registration-certificate.cli | 73 +++ .../files/golden/help/alonzo.cli | 2 + .../files/golden/help/alonzo_stake-pool.cli | 18 + ..._stake-pool_deregistration-certificate.cli | 17 + .../golden/help/alonzo_stake-pool_id.cli | 18 + .../help/alonzo_stake-pool_metadata-hash.cli | 10 + ...zo_stake-pool_registration-certificate.cli | 73 +++ .../files/golden/help/babbage.cli | 2 + .../files/golden/help/babbage_stake-pool.cli | 18 + ..._stake-pool_deregistration-certificate.cli | 17 + .../golden/help/babbage_stake-pool_id.cli | 18 + .../help/babbage_stake-pool_metadata-hash.cli | 10 + ...ge_stake-pool_registration-certificate.cli | 73 +++ .../files/golden/help/conway.cli | 2 + .../files/golden/help/conway_stake-pool.cli | 18 + ..._stake-pool_deregistration-certificate.cli | 17 + .../golden/help/conway_stake-pool_id.cli | 18 + .../help/conway_stake-pool_metadata-hash.cli | 10 + ...ay_stake-pool_registration-certificate.cli | 73 +++ .../files/golden/help/latest.cli | 2 + .../files/golden/help/latest_stake-pool.cli | 18 + ..._stake-pool_deregistration-certificate.cli | 17 + .../golden/help/latest_stake-pool_id.cli | 18 + .../help/latest_stake-pool_metadata-hash.cli | 10 + ...st_stake-pool_registration-certificate.cli | 73 +++ .../files/golden/help/mary.cli | 2 + .../files/golden/help/mary_stake-pool.cli | 18 + ..._stake-pool_deregistration-certificate.cli | 17 + .../files/golden/help/mary_stake-pool_id.cli | 18 + .../help/mary_stake-pool_metadata-hash.cli | 10 + ...ry_stake-pool_registration-certificate.cli | 73 +++ .../files/golden/help/shelley.cli | 2 + .../files/golden/help/shelley_stake-pool.cli | 18 + ..._stake-pool_deregistration-certificate.cli | 17 + .../golden/help/shelley_stake-pool_id.cli | 18 + .../help/shelley_stake-pool_metadata-hash.cli | 10 + ...ey_stake-pool_registration-certificate.cli | 73 +++ 47 files changed, 1467 insertions(+), 17 deletions(-) create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_stake-pool.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_stake-pool_deregistration-certificate.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_stake-pool_id.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_stake-pool_metadata-hash.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_stake-pool_registration-certificate.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_stake-pool.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_stake-pool_deregistration-certificate.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_stake-pool_id.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_stake-pool_metadata-hash.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_stake-pool_registration-certificate.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_stake-pool.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_stake-pool_deregistration-certificate.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_stake-pool_id.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_stake-pool_metadata-hash.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_stake-pool_registration-certificate.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/conway_stake-pool.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/conway_stake-pool_deregistration-certificate.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/conway_stake-pool_id.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/conway_stake-pool_metadata-hash.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/conway_stake-pool_registration-certificate.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/latest_stake-pool.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/latest_stake-pool_deregistration-certificate.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/latest_stake-pool_id.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/latest_stake-pool_metadata-hash.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/latest_stake-pool_registration-certificate.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/mary_stake-pool.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/mary_stake-pool_deregistration-certificate.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/mary_stake-pool_id.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/mary_stake-pool_metadata-hash.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/mary_stake-pool_registration-certificate.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_stake-pool.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_stake-pool_deregistration-certificate.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_stake-pool_id.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_stake-pool_metadata-hash.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_stake-pool_registration-certificate.cli diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Commands.hs b/cardano-cli/src/Cardano/CLI/EraBased/Commands.hs index ac41fd3b8e..a6eae09ff7 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Commands.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Commands.hs @@ -19,6 +19,7 @@ import Cardano.CLI.EraBased.Commands.Key import Cardano.CLI.EraBased.Commands.Node import Cardano.CLI.EraBased.Commands.Query import Cardano.CLI.EraBased.Commands.StakeAddress +import Cardano.CLI.EraBased.Commands.StakePool import Cardano.CLI.EraBased.Commands.TextView import Cardano.CLI.EraBased.Commands.Transaction import Cardano.CLI.EraBased.Options.Address @@ -29,6 +30,7 @@ import Cardano.CLI.EraBased.Options.Key import Cardano.CLI.EraBased.Options.Node import Cardano.CLI.EraBased.Options.Query import Cardano.CLI.EraBased.Options.StakeAddress +import Cardano.CLI.EraBased.Options.StakePool import Cardano.CLI.EraBased.Options.TextView import Cardano.CLI.EraBased.Options.Transaction @@ -53,6 +55,7 @@ data Cmds era | NodeCmds (NodeCmds era) | QueryCmds (QueryCmds era) | StakeAddressCmds (StakeAddressCmds era) + | StakePoolCmds (StakePoolCmds era) | TextViewCmds (TextViewCmds era) | TransactionCmds (TransactionCmds era) @@ -72,6 +75,8 @@ renderCmds = \case renderQueryCmds cmd StakeAddressCmds cmd -> renderStakeAddressCmds cmd + StakePoolCmds cmd -> + renderStakePoolCmds cmd TextViewCmds cmd -> renderTextViewCmds cmd TransactionCmds cmd -> @@ -134,6 +139,10 @@ pCmds envCli era = $ Opt.info (QueryCmds <$> pQueryCmds envCli) $ Opt.progDesc "Era-based query commands" , fmap StakeAddressCmds <$> pStakeAddressCmds era envCli + , Just + $ subParser "stake-pool" + $ Opt.info (StakePoolCmds <$> pStakePoolCmds era envCli) + $ Opt.progDesc "Era-based text-view commands" , Just $ subParser "text-view" $ Opt.info (TextViewCmds <$> pTextViewCmds) diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Run.hs b/cardano-cli/src/Cardano/CLI/EraBased/Run.hs index 1dc09e8568..6fb79dcf15 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Run.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Run.hs @@ -23,6 +23,7 @@ import Cardano.CLI.EraBased.Run.Key import Cardano.CLI.EraBased.Run.Node import Cardano.CLI.EraBased.Run.Query import Cardano.CLI.EraBased.Run.StakeAddress +import Cardano.CLI.EraBased.Run.StakePool import Cardano.CLI.EraBased.Run.TextView import Cardano.CLI.EraBased.Run.Transaction import Cardano.CLI.Types.Errors.CmdError @@ -61,6 +62,9 @@ runCmds = \case StakeAddressCmds cmd -> runStakeAddressCmds cmd & firstExceptT CmdStakeAddressError + StakePoolCmds cmd -> + runStakePoolCmds cmd + & firstExceptT CmdStakePoolError TextViewCmds cmd -> runTextViewCmds cmd & firstExceptT CmdTextViewError diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Run/StakePool.hs b/cardano-cli/src/Cardano/CLI/EraBased/Run/StakePool.hs index 8ceb5306ec..20199dab24 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Run/StakePool.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Run/StakePool.hs @@ -1,9 +1,12 @@ {-# LANGUAGE DataKinds #-} {-# LANGUAGE GADTs #-} +{-# LANGUAGE LambdaCase #-} {-# LANGUAGE RankNTypes #-} module Cardano.CLI.EraBased.Run.StakePool - ( runStakePoolIdCmd + ( runStakePoolCmds + + , runStakePoolIdCmd , runStakePoolMetadataHashCmd , runStakePoolRegistrationCertificateCmd , runStakePoolRetirementCertificateCmd @@ -13,6 +16,7 @@ import Cardano.Api import qualified Cardano.Api.Ledger as Ledger import Cardano.Api.Shelley +import Cardano.CLI.EraBased.Commands.StakePool import Cardano.CLI.Types.Common import Cardano.CLI.Types.Errors.StakePoolCmdError import Cardano.CLI.Types.Key (VerificationKeyOrFile, readVerificationKeyOrFile) @@ -26,6 +30,19 @@ import Control.Monad.Trans.Except.Extra (firstExceptT, handleIOExceptT import qualified Data.ByteString.Char8 as BS import Data.Function ((&)) +runStakePoolCmds :: () + => StakePoolCmds era + -> ExceptT StakePoolCmdError IO () +runStakePoolCmds = \case + StakePoolDeregistrationCertificateCmd sbe sPvkeyFp retireEpoch outfp -> + runStakePoolRetirementCertificateCmd sbe sPvkeyFp retireEpoch outfp + StakePoolIdCmd sPvkey outputFormat mOutFile -> + runStakePoolIdCmd sPvkey outputFormat mOutFile + StakePoolMetadataHashCmd poolMdFile mOutFile -> + runStakePoolMetadataHashCmd poolMdFile mOutFile + StakePoolRegistrationCertificateCmd sbe sPvkey vrfVkey pldg pCost pMrgn rwdVerFp ownerVerFps relays mbMetadata network outfp -> + runStakePoolRegistrationCertificateCmd sbe sPvkey vrfVkey pldg pCost pMrgn rwdVerFp ownerVerFps relays mbMetadata network outfp + -- -- Stake pool command implementations -- @@ -34,7 +51,7 @@ import Data.Function ((&)) -- TODO: Metadata and more stake pool relay support to be -- added in the future. runStakePoolRegistrationCertificateCmd - :: AnyShelleyBasedEra + :: ShelleyBasedEra era -> VerificationKeyOrFile StakePoolKey -- ^ Stake pool verification key. -> VerificationKeyOrFile VrfKey @@ -57,7 +74,7 @@ runStakePoolRegistrationCertificateCmd -> File () Out -> ExceptT StakePoolCmdError IO () runStakePoolRegistrationCertificateCmd - anyEra + sbe stakePoolVerKeyOrFile vrfVerKeyOrFile pldg @@ -68,9 +85,7 @@ runStakePoolRegistrationCertificateCmd relays mbMetadata network - outfp = do - AnyShelleyBasedEra sbe <- pure anyEra - + outfp = shelleyBasedEraConstraints sbe $ do -- Pool verification key stakePoolVerKey <- firstExceptT StakePoolCmdReadKeyFileError . newExceptT @@ -126,8 +141,8 @@ runStakePoolRegistrationCertificateCmd registrationCertDesc :: TextEnvelopeDescr registrationCertDesc = "Stake Pool Registration Certificate" -createStakePoolRegistrationRequirements - :: ShelleyBasedEra era +createStakePoolRegistrationRequirements :: () + => ShelleyBasedEra era -> Ledger.PoolParams (Ledger.EraCrypto (ShelleyLedgerEra era)) -> StakePoolRegistrationRequirements era createStakePoolRegistrationRequirements sbe pparams = @@ -146,15 +161,14 @@ createStakePoolRegistrationRequirements sbe pparams = StakePoolRegistrationRequirementsConwayOnwards ConwayEraOnwardsConway pparams -runStakePoolRetirementCertificateCmd - :: AnyShelleyBasedEra +runStakePoolRetirementCertificateCmd :: () + => ShelleyBasedEra era -> VerificationKeyOrFile StakePoolKey -> Shelley.EpochNo -> File () Out -> ExceptT StakePoolCmdError IO () -runStakePoolRetirementCertificateCmd anyEra stakePoolVerKeyOrFile retireEpoch outfp = do - AnyShelleyBasedEra sbe <- pure anyEra - +runStakePoolRetirementCertificateCmd sbe stakePoolVerKeyOrFile retireEpoch outfp = + shelleyBasedEraConstraints sbe $ do -- Pool verification key stakePoolVerKey <- firstExceptT StakePoolCmdReadKeyFileError . newExceptT diff --git a/cardano-cli/src/Cardano/CLI/Legacy/Run/StakePool.hs b/cardano-cli/src/Cardano/CLI/Legacy/Run/StakePool.hs index 883e753040..61044cdf3f 100644 --- a/cardano-cli/src/Cardano/CLI/Legacy/Run/StakePool.hs +++ b/cardano-cli/src/Cardano/CLI/Legacy/Run/StakePool.hs @@ -57,8 +57,9 @@ runLegacyStakePoolRegistrationCertificateCmd :: () -> NetworkId -> File () Out -> ExceptT StakePoolCmdError IO () -runLegacyStakePoolRegistrationCertificateCmd = - runStakePoolRegistrationCertificateCmd +runLegacyStakePoolRegistrationCertificateCmd = \case + AnyShelleyBasedEra sbe -> + runStakePoolRegistrationCertificateCmd sbe runLegacyStakePoolDeregistrationCertificateCmd :: () => AnyShelleyBasedEra @@ -66,8 +67,9 @@ runLegacyStakePoolDeregistrationCertificateCmd :: () -> Shelley.EpochNo -> File () Out -> ExceptT StakePoolCmdError IO () -runLegacyStakePoolDeregistrationCertificateCmd = - runStakePoolRetirementCertificateCmd +runLegacyStakePoolDeregistrationCertificateCmd = \case + AnyShelleyBasedEra sbe -> + runStakePoolRetirementCertificateCmd sbe runLegacyStakePoolIdCmd :: () => VerificationKeyOrFile StakePoolKey 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 329cbcd869..2d0164d99a 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help.cli @@ -21,6 +21,7 @@ Usage: cardano-cli shelley | node | query | stake-address + | stake-pool | text-view | transaction ) @@ -778,6 +779,70 @@ Usage: cardano-cli shelley stake-address stake-delegation-certificate Create a stake address stake delegation certificate, which when submitted in a transaction delegates stake to a stake pool. +Usage: cardano-cli shelley stake-pool + ( registration-certificate + | deregistration-certificate + | id + | metadata-hash + ) + + Era-based text-view commands + +Usage: cardano-cli shelley stake-pool 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 + ) + --out-file FILE + + Create a stake pool registration certificate + +Usage: cardano-cli shelley stake-pool deregistration-certificate + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + --epoch NATURAL + --out-file FILE + + Create a stake pool deregistration certificate + +Usage: cardano-cli shelley stake-pool id + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + [--output-format STRING] + [--out-file FILE] + + Build pool id from the offline key + +Usage: cardano-cli shelley stake-pool metadata-hash --pool-metadata-file FILE + [--out-file FILE] + + Print the hash of pool metadata. + Usage: cardano-cli shelley text-view decode-cbor Era-based text-view commands @@ -1178,6 +1243,7 @@ Usage: cardano-cli allegra | node | query | stake-address + | stake-pool | text-view | transaction ) @@ -1935,6 +2001,70 @@ Usage: cardano-cli allegra stake-address stake-delegation-certificate Create a stake address stake delegation certificate, which when submitted in a transaction delegates stake to a stake pool. +Usage: cardano-cli allegra stake-pool + ( registration-certificate + | deregistration-certificate + | id + | metadata-hash + ) + + Era-based text-view commands + +Usage: cardano-cli allegra stake-pool 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 + ) + --out-file FILE + + Create a stake pool registration certificate + +Usage: cardano-cli allegra stake-pool deregistration-certificate + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + --epoch NATURAL + --out-file FILE + + Create a stake pool deregistration certificate + +Usage: cardano-cli allegra stake-pool id + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + [--output-format STRING] + [--out-file FILE] + + Build pool id from the offline key + +Usage: cardano-cli allegra stake-pool metadata-hash --pool-metadata-file FILE + [--out-file FILE] + + Print the hash of pool metadata. + Usage: cardano-cli allegra text-view decode-cbor Era-based text-view commands @@ -2335,6 +2465,7 @@ Usage: cardano-cli mary | node | query | stake-address + | stake-pool | text-view | transaction ) @@ -3080,6 +3211,70 @@ Usage: cardano-cli mary stake-address stake-delegation-certificate Create a stake address stake delegation certificate, which when submitted in a transaction delegates stake to a stake pool. +Usage: cardano-cli mary stake-pool + ( registration-certificate + | deregistration-certificate + | id + | metadata-hash + ) + + Era-based text-view commands + +Usage: cardano-cli mary stake-pool 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 + ) + --out-file FILE + + Create a stake pool registration certificate + +Usage: cardano-cli mary stake-pool deregistration-certificate + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + --epoch NATURAL + --out-file FILE + + Create a stake pool deregistration certificate + +Usage: cardano-cli mary stake-pool id + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + [--output-format STRING] + [--out-file FILE] + + Build pool id from the offline key + +Usage: cardano-cli mary stake-pool metadata-hash --pool-metadata-file FILE + [--out-file FILE] + + Print the hash of pool metadata. + Usage: cardano-cli mary text-view decode-cbor Era-based text-view commands @@ -3464,6 +3659,7 @@ Usage: cardano-cli alonzo | node | query | stake-address + | stake-pool | text-view | transaction ) @@ -4226,6 +4422,70 @@ Usage: cardano-cli alonzo stake-address stake-delegation-certificate Create a stake address stake delegation certificate, which when submitted in a transaction delegates stake to a stake pool. +Usage: cardano-cli alonzo stake-pool + ( registration-certificate + | deregistration-certificate + | id + | metadata-hash + ) + + Era-based text-view commands + +Usage: cardano-cli alonzo stake-pool 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 + ) + --out-file FILE + + Create a stake pool registration certificate + +Usage: cardano-cli alonzo stake-pool deregistration-certificate + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + --epoch NATURAL + --out-file FILE + + Create a stake pool deregistration certificate + +Usage: cardano-cli alonzo stake-pool id + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + [--output-format STRING] + [--out-file FILE] + + Build pool id from the offline key + +Usage: cardano-cli alonzo stake-pool metadata-hash --pool-metadata-file FILE + [--out-file FILE] + + Print the hash of pool metadata. + Usage: cardano-cli alonzo text-view decode-cbor Era-based text-view commands @@ -4625,6 +4885,7 @@ Usage: cardano-cli babbage | node | query | stake-address + | stake-pool | text-view | transaction ) @@ -5385,6 +5646,70 @@ Usage: cardano-cli babbage stake-address stake-delegation-certificate Create a stake address stake delegation certificate, which when submitted in a transaction delegates stake to a stake pool. +Usage: cardano-cli babbage stake-pool + ( registration-certificate + | deregistration-certificate + | id + | metadata-hash + ) + + Era-based text-view commands + +Usage: cardano-cli babbage stake-pool 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 + ) + --out-file FILE + + Create a stake pool registration certificate + +Usage: cardano-cli babbage stake-pool deregistration-certificate + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + --epoch NATURAL + --out-file FILE + + Create a stake pool deregistration certificate + +Usage: cardano-cli babbage stake-pool id + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + [--output-format STRING] + [--out-file FILE] + + Build pool id from the offline key + +Usage: cardano-cli babbage stake-pool metadata-hash --pool-metadata-file FILE + [--out-file FILE] + + Print the hash of pool metadata. + Usage: cardano-cli babbage text-view decode-cbor Era-based text-view commands @@ -5785,6 +6110,7 @@ Usage: cardano-cli conway | node | query | stake-address + | stake-pool | text-view | transaction ) @@ -6859,6 +7185,70 @@ Usage: cardano-cli conway stake-address vote-delegation-certificate Create a stake address vote delegation certificate, which when submitted in a transaction delegates stake to a stake pool and a DRep. +Usage: cardano-cli conway stake-pool + ( registration-certificate + | deregistration-certificate + | id + | metadata-hash + ) + + Era-based text-view commands + +Usage: cardano-cli conway stake-pool 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 + ) + --out-file FILE + + Create a stake pool registration certificate + +Usage: cardano-cli conway stake-pool deregistration-certificate + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + --epoch NATURAL + --out-file FILE + + Create a stake pool deregistration certificate + +Usage: cardano-cli conway stake-pool id + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + [--output-format STRING] + [--out-file FILE] + + Build pool id from the offline key + +Usage: cardano-cli conway stake-pool metadata-hash --pool-metadata-file FILE + [--out-file FILE] + + Print the hash of pool metadata. + Usage: cardano-cli conway text-view decode-cbor Era-based text-view commands @@ -7258,6 +7648,7 @@ Usage: cardano-cli latest | node | query | stake-address + | stake-pool | text-view | transaction ) @@ -8016,6 +8407,70 @@ Usage: cardano-cli latest stake-address stake-delegation-certificate Create a stake address stake delegation certificate, which when submitted in a transaction delegates stake to a stake pool. +Usage: cardano-cli latest stake-pool + ( registration-certificate + | deregistration-certificate + | id + | metadata-hash + ) + + Era-based text-view commands + +Usage: cardano-cli latest stake-pool 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 + ) + --out-file FILE + + Create a stake pool registration certificate + +Usage: cardano-cli latest stake-pool deregistration-certificate + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + --epoch NATURAL + --out-file FILE + + Create a stake pool deregistration certificate + +Usage: cardano-cli latest stake-pool id + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + [--output-format STRING] + [--out-file FILE] + + Build pool id from the offline key + +Usage: cardano-cli latest stake-pool metadata-hash --pool-metadata-file FILE + [--out-file FILE] + + Print the hash of pool metadata. + Usage: cardano-cli latest text-view decode-cbor Era-based text-view commands diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra.cli index db87e33431..c2d7b3536b 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra.cli @@ -6,6 +6,7 @@ Usage: cardano-cli allegra | node | query | stake-address + | stake-pool | text-view | transaction ) @@ -23,5 +24,6 @@ Available commands: node Era-based node commands query Era-based query commands stake-address Stake address commands. + stake-pool Era-based text-view commands text-view Era-based text-view commands transaction Era-based transaction commands diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_stake-pool.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_stake-pool.cli new file mode 100644 index 0000000000..024ea69949 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_stake-pool.cli @@ -0,0 +1,18 @@ +Usage: cardano-cli allegra stake-pool + ( registration-certificate + | deregistration-certificate + | id + | metadata-hash + ) + + Era-based text-view commands + +Available options: + -h,--help Show this help text + +Available commands: + registration-certificate Create a stake pool registration certificate + deregistration-certificate + Create a stake pool deregistration certificate + id Build pool id from the offline key + metadata-hash Print the hash of pool metadata. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_stake-pool_deregistration-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_stake-pool_deregistration-certificate.cli new file mode 100644 index 0000000000..19cf22d824 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_stake-pool_deregistration-certificate.cli @@ -0,0 +1,17 @@ +Usage: cardano-cli allegra stake-pool deregistration-certificate + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + --epoch NATURAL + --out-file FILE + + Create a stake pool deregistration 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. + --epoch NATURAL The epoch number. + --out-file FILE The output file. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_stake-pool_id.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_stake-pool_id.cli new file mode 100644 index 0000000000..4b099766eb --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_stake-pool_id.cli @@ -0,0 +1,18 @@ +Usage: cardano-cli allegra stake-pool id + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + [--output-format STRING] + [--out-file FILE] + + Build pool id from the offline key + +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. + --output-format STRING Optional pool id output format. Accepted output + formats are "hex" and "bech32" (default is "bech32"). + --out-file FILE Optional output file. Default is to write to stdout. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_stake-pool_metadata-hash.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_stake-pool_metadata-hash.cli new file mode 100644 index 0000000000..58148df8dc --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_stake-pool_metadata-hash.cli @@ -0,0 +1,10 @@ +Usage: cardano-cli allegra stake-pool metadata-hash --pool-metadata-file FILE + [--out-file FILE] + + Print the hash of pool metadata. + +Available options: + --pool-metadata-file FILE + Filepath of the pool metadata. + --out-file FILE Optional output file. Default is to write to stdout. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_stake-pool_registration-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_stake-pool_registration-certificate.cli new file mode 100644 index 0000000000..8de7199dba --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_stake-pool_registration-certificate.cli @@ -0,0 +1,73 @@ +Usage: cardano-cli allegra stake-pool 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 + ) + --out-file FILE + + Create a stake pool 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 + --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.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo.cli index 043fd8a283..139a82249e 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo.cli @@ -6,6 +6,7 @@ Usage: cardano-cli alonzo | node | query | stake-address + | stake-pool | text-view | transaction ) @@ -23,5 +24,6 @@ Available commands: node Era-based node commands query Era-based query commands stake-address Stake address commands. + stake-pool Era-based text-view commands text-view Era-based text-view commands transaction Era-based transaction commands diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_stake-pool.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_stake-pool.cli new file mode 100644 index 0000000000..a4392c2bdc --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_stake-pool.cli @@ -0,0 +1,18 @@ +Usage: cardano-cli alonzo stake-pool + ( registration-certificate + | deregistration-certificate + | id + | metadata-hash + ) + + Era-based text-view commands + +Available options: + -h,--help Show this help text + +Available commands: + registration-certificate Create a stake pool registration certificate + deregistration-certificate + Create a stake pool deregistration certificate + id Build pool id from the offline key + metadata-hash Print the hash of pool metadata. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_stake-pool_deregistration-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_stake-pool_deregistration-certificate.cli new file mode 100644 index 0000000000..bd2e436f64 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_stake-pool_deregistration-certificate.cli @@ -0,0 +1,17 @@ +Usage: cardano-cli alonzo stake-pool deregistration-certificate + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + --epoch NATURAL + --out-file FILE + + Create a stake pool deregistration 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. + --epoch NATURAL The epoch number. + --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_stake-pool_id.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_stake-pool_id.cli new file mode 100644 index 0000000000..376741f25a --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_stake-pool_id.cli @@ -0,0 +1,18 @@ +Usage: cardano-cli alonzo stake-pool id + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + [--output-format STRING] + [--out-file FILE] + + Build pool id from the offline key + +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. + --output-format STRING Optional pool id output format. Accepted output + formats are "hex" and "bech32" (default is "bech32"). + --out-file FILE Optional output file. Default is to write to stdout. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_stake-pool_metadata-hash.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_stake-pool_metadata-hash.cli new file mode 100644 index 0000000000..3b57aee0c2 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_stake-pool_metadata-hash.cli @@ -0,0 +1,10 @@ +Usage: cardano-cli alonzo stake-pool metadata-hash --pool-metadata-file FILE + [--out-file FILE] + + Print the hash of pool metadata. + +Available options: + --pool-metadata-file FILE + Filepath of the pool metadata. + --out-file FILE Optional output file. Default is to write to stdout. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_stake-pool_registration-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_stake-pool_registration-certificate.cli new file mode 100644 index 0000000000..b5d1a957c5 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_stake-pool_registration-certificate.cli @@ -0,0 +1,73 @@ +Usage: cardano-cli alonzo stake-pool 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 + ) + --out-file FILE + + Create a stake pool 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 + --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.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage.cli index b0cd408235..745efb356d 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage.cli @@ -6,6 +6,7 @@ Usage: cardano-cli babbage | node | query | stake-address + | stake-pool | text-view | transaction ) @@ -23,5 +24,6 @@ Available commands: node Era-based node commands query Era-based query commands stake-address Stake address commands. + stake-pool Era-based text-view commands text-view Era-based text-view commands transaction Era-based transaction commands diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_stake-pool.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_stake-pool.cli new file mode 100644 index 0000000000..b7733cc824 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_stake-pool.cli @@ -0,0 +1,18 @@ +Usage: cardano-cli babbage stake-pool + ( registration-certificate + | deregistration-certificate + | id + | metadata-hash + ) + + Era-based text-view commands + +Available options: + -h,--help Show this help text + +Available commands: + registration-certificate Create a stake pool registration certificate + deregistration-certificate + Create a stake pool deregistration certificate + id Build pool id from the offline key + metadata-hash Print the hash of pool metadata. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_stake-pool_deregistration-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_stake-pool_deregistration-certificate.cli new file mode 100644 index 0000000000..a3b7c0b25b --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_stake-pool_deregistration-certificate.cli @@ -0,0 +1,17 @@ +Usage: cardano-cli babbage stake-pool deregistration-certificate + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + --epoch NATURAL + --out-file FILE + + Create a stake pool deregistration 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. + --epoch NATURAL The epoch number. + --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_stake-pool_id.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_stake-pool_id.cli new file mode 100644 index 0000000000..27ca888cc5 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_stake-pool_id.cli @@ -0,0 +1,18 @@ +Usage: cardano-cli babbage stake-pool id + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + [--output-format STRING] + [--out-file FILE] + + Build pool id from the offline key + +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. + --output-format STRING Optional pool id output format. Accepted output + formats are "hex" and "bech32" (default is "bech32"). + --out-file FILE Optional output file. Default is to write to stdout. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_stake-pool_metadata-hash.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_stake-pool_metadata-hash.cli new file mode 100644 index 0000000000..8ee20e590e --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_stake-pool_metadata-hash.cli @@ -0,0 +1,10 @@ +Usage: cardano-cli babbage stake-pool metadata-hash --pool-metadata-file FILE + [--out-file FILE] + + Print the hash of pool metadata. + +Available options: + --pool-metadata-file FILE + Filepath of the pool metadata. + --out-file FILE Optional output file. Default is to write to stdout. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_stake-pool_registration-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_stake-pool_registration-certificate.cli new file mode 100644 index 0000000000..3ca57f317f --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_stake-pool_registration-certificate.cli @@ -0,0 +1,73 @@ +Usage: cardano-cli babbage stake-pool 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 + ) + --out-file FILE + + Create a stake pool 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 + --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.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway.cli index fc6c5a33c4..de21c3db2d 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway.cli @@ -6,6 +6,7 @@ Usage: cardano-cli conway | node | query | stake-address + | stake-pool | text-view | transaction ) @@ -23,5 +24,6 @@ Available commands: node Era-based node commands query Era-based query commands stake-address Stake address commands. + stake-pool Era-based text-view commands text-view Era-based text-view commands transaction Era-based transaction commands diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_stake-pool.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_stake-pool.cli new file mode 100644 index 0000000000..20abf70818 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_stake-pool.cli @@ -0,0 +1,18 @@ +Usage: cardano-cli conway stake-pool + ( registration-certificate + | deregistration-certificate + | id + | metadata-hash + ) + + Era-based text-view commands + +Available options: + -h,--help Show this help text + +Available commands: + registration-certificate Create a stake pool registration certificate + deregistration-certificate + Create a stake pool deregistration certificate + id Build pool id from the offline key + metadata-hash Print the hash of pool metadata. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_stake-pool_deregistration-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_stake-pool_deregistration-certificate.cli new file mode 100644 index 0000000000..537d764f3d --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_stake-pool_deregistration-certificate.cli @@ -0,0 +1,17 @@ +Usage: cardano-cli conway stake-pool deregistration-certificate + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + --epoch NATURAL + --out-file FILE + + Create a stake pool deregistration 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. + --epoch NATURAL The epoch number. + --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_stake-pool_id.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_stake-pool_id.cli new file mode 100644 index 0000000000..ef90ff1112 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_stake-pool_id.cli @@ -0,0 +1,18 @@ +Usage: cardano-cli conway stake-pool id + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + [--output-format STRING] + [--out-file FILE] + + Build pool id from the offline key + +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. + --output-format STRING Optional pool id output format. Accepted output + formats are "hex" and "bech32" (default is "bech32"). + --out-file FILE Optional output file. Default is to write to stdout. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_stake-pool_metadata-hash.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_stake-pool_metadata-hash.cli new file mode 100644 index 0000000000..86b26cfba7 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_stake-pool_metadata-hash.cli @@ -0,0 +1,10 @@ +Usage: cardano-cli conway stake-pool metadata-hash --pool-metadata-file FILE + [--out-file FILE] + + Print the hash of pool metadata. + +Available options: + --pool-metadata-file FILE + Filepath of the pool metadata. + --out-file FILE Optional output file. Default is to write to stdout. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_stake-pool_registration-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_stake-pool_registration-certificate.cli new file mode 100644 index 0000000000..6cb1a37e9a --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_stake-pool_registration-certificate.cli @@ -0,0 +1,73 @@ +Usage: cardano-cli conway stake-pool 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 + ) + --out-file FILE + + Create a stake pool 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 + --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.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest.cli index ece425c398..6ef63797fe 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest.cli @@ -6,6 +6,7 @@ Usage: cardano-cli latest | node | query | stake-address + | stake-pool | text-view | transaction ) @@ -23,5 +24,6 @@ Available commands: node Era-based node commands query Era-based query commands stake-address Stake address commands. + stake-pool Era-based text-view commands text-view Era-based text-view commands transaction Era-based transaction commands diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_stake-pool.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_stake-pool.cli new file mode 100644 index 0000000000..ff53bfe37b --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_stake-pool.cli @@ -0,0 +1,18 @@ +Usage: cardano-cli latest stake-pool + ( registration-certificate + | deregistration-certificate + | id + | metadata-hash + ) + + Era-based text-view commands + +Available options: + -h,--help Show this help text + +Available commands: + registration-certificate Create a stake pool registration certificate + deregistration-certificate + Create a stake pool deregistration certificate + id Build pool id from the offline key + metadata-hash Print the hash of pool metadata. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_stake-pool_deregistration-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_stake-pool_deregistration-certificate.cli new file mode 100644 index 0000000000..ba8e45253a --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_stake-pool_deregistration-certificate.cli @@ -0,0 +1,17 @@ +Usage: cardano-cli latest stake-pool deregistration-certificate + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + --epoch NATURAL + --out-file FILE + + Create a stake pool deregistration 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. + --epoch NATURAL The epoch number. + --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_stake-pool_id.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_stake-pool_id.cli new file mode 100644 index 0000000000..66dea02455 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_stake-pool_id.cli @@ -0,0 +1,18 @@ +Usage: cardano-cli latest stake-pool id + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + [--output-format STRING] + [--out-file FILE] + + Build pool id from the offline key + +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. + --output-format STRING Optional pool id output format. Accepted output + formats are "hex" and "bech32" (default is "bech32"). + --out-file FILE Optional output file. Default is to write to stdout. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_stake-pool_metadata-hash.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_stake-pool_metadata-hash.cli new file mode 100644 index 0000000000..3e82827ea2 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_stake-pool_metadata-hash.cli @@ -0,0 +1,10 @@ +Usage: cardano-cli latest stake-pool metadata-hash --pool-metadata-file FILE + [--out-file FILE] + + Print the hash of pool metadata. + +Available options: + --pool-metadata-file FILE + Filepath of the pool metadata. + --out-file FILE Optional output file. Default is to write to stdout. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_stake-pool_registration-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_stake-pool_registration-certificate.cli new file mode 100644 index 0000000000..22eb89be4b --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_stake-pool_registration-certificate.cli @@ -0,0 +1,73 @@ +Usage: cardano-cli latest stake-pool 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 + ) + --out-file FILE + + Create a stake pool 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 + --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.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary.cli index 09febae2ca..1495e57a99 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary.cli @@ -6,6 +6,7 @@ Usage: cardano-cli mary | node | query | stake-address + | stake-pool | text-view | transaction ) @@ -23,5 +24,6 @@ Available commands: node Era-based node commands query Era-based query commands stake-address Stake address commands. + stake-pool Era-based text-view commands text-view Era-based text-view commands transaction Era-based transaction commands diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_stake-pool.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_stake-pool.cli new file mode 100644 index 0000000000..1cad3fce3b --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_stake-pool.cli @@ -0,0 +1,18 @@ +Usage: cardano-cli mary stake-pool + ( registration-certificate + | deregistration-certificate + | id + | metadata-hash + ) + + Era-based text-view commands + +Available options: + -h,--help Show this help text + +Available commands: + registration-certificate Create a stake pool registration certificate + deregistration-certificate + Create a stake pool deregistration certificate + id Build pool id from the offline key + metadata-hash Print the hash of pool metadata. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_stake-pool_deregistration-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_stake-pool_deregistration-certificate.cli new file mode 100644 index 0000000000..2b5ab1e2f1 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_stake-pool_deregistration-certificate.cli @@ -0,0 +1,17 @@ +Usage: cardano-cli mary stake-pool deregistration-certificate + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + --epoch NATURAL + --out-file FILE + + Create a stake pool deregistration 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. + --epoch NATURAL The epoch number. + --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_stake-pool_id.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_stake-pool_id.cli new file mode 100644 index 0000000000..550099216a --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_stake-pool_id.cli @@ -0,0 +1,18 @@ +Usage: cardano-cli mary stake-pool id + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + [--output-format STRING] + [--out-file FILE] + + Build pool id from the offline key + +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. + --output-format STRING Optional pool id output format. Accepted output + formats are "hex" and "bech32" (default is "bech32"). + --out-file FILE Optional output file. Default is to write to stdout. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_stake-pool_metadata-hash.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_stake-pool_metadata-hash.cli new file mode 100644 index 0000000000..6fd4923843 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_stake-pool_metadata-hash.cli @@ -0,0 +1,10 @@ +Usage: cardano-cli mary stake-pool metadata-hash --pool-metadata-file FILE + [--out-file FILE] + + Print the hash of pool metadata. + +Available options: + --pool-metadata-file FILE + Filepath of the pool metadata. + --out-file FILE Optional output file. Default is to write to stdout. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_stake-pool_registration-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_stake-pool_registration-certificate.cli new file mode 100644 index 0000000000..39ac2edbcf --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_stake-pool_registration-certificate.cli @@ -0,0 +1,73 @@ +Usage: cardano-cli mary stake-pool 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 + ) + --out-file FILE + + Create a stake pool 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 + --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.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley.cli index 1d507b2484..1bba401517 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley.cli @@ -6,6 +6,7 @@ Usage: cardano-cli shelley | node | query | stake-address + | stake-pool | text-view | transaction ) @@ -23,5 +24,6 @@ Available commands: node Era-based node commands query Era-based query commands stake-address Stake address commands. + stake-pool Era-based text-view commands text-view Era-based text-view commands transaction Era-based transaction commands diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_stake-pool.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_stake-pool.cli new file mode 100644 index 0000000000..7d10bc3d68 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_stake-pool.cli @@ -0,0 +1,18 @@ +Usage: cardano-cli shelley stake-pool + ( registration-certificate + | deregistration-certificate + | id + | metadata-hash + ) + + Era-based text-view commands + +Available options: + -h,--help Show this help text + +Available commands: + registration-certificate Create a stake pool registration certificate + deregistration-certificate + Create a stake pool deregistration certificate + id Build pool id from the offline key + metadata-hash Print the hash of pool metadata. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_stake-pool_deregistration-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_stake-pool_deregistration-certificate.cli new file mode 100644 index 0000000000..6167fc0b7b --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_stake-pool_deregistration-certificate.cli @@ -0,0 +1,17 @@ +Usage: cardano-cli shelley stake-pool deregistration-certificate + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + --epoch NATURAL + --out-file FILE + + Create a stake pool deregistration 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. + --epoch NATURAL The epoch number. + --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_stake-pool_id.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_stake-pool_id.cli new file mode 100644 index 0000000000..5f78ba8ed8 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_stake-pool_id.cli @@ -0,0 +1,18 @@ +Usage: cardano-cli shelley stake-pool id + ( --stake-pool-verification-key STRING + | --cold-verification-key-file FILE + ) + [--output-format STRING] + [--out-file FILE] + + Build pool id from the offline key + +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. + --output-format STRING Optional pool id output format. Accepted output + formats are "hex" and "bech32" (default is "bech32"). + --out-file FILE Optional output file. Default is to write to stdout. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_stake-pool_metadata-hash.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_stake-pool_metadata-hash.cli new file mode 100644 index 0000000000..b97f6ec4da --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_stake-pool_metadata-hash.cli @@ -0,0 +1,10 @@ +Usage: cardano-cli shelley stake-pool metadata-hash --pool-metadata-file FILE + [--out-file FILE] + + Print the hash of pool metadata. + +Available options: + --pool-metadata-file FILE + Filepath of the pool metadata. + --out-file FILE Optional output file. Default is to write to stdout. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_stake-pool_registration-certificate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_stake-pool_registration-certificate.cli new file mode 100644 index 0000000000..58007cb69a --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_stake-pool_registration-certificate.cli @@ -0,0 +1,73 @@ +Usage: cardano-cli shelley stake-pool 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 + ) + --out-file FILE + + Create a stake pool 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 + --out-file FILE The output file. + -h,--help Show this help text