diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Options/Query.hs b/cardano-cli/src/Cardano/CLI/EraBased/Options/Query.hs index be9983d439..ea09c516f6 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Options/Query.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Options/Query.hs @@ -38,10 +38,6 @@ pQueryCmds era envCli = $ subParser "protocol-parameters" $ Opt.info (pQueryProtocolParametersCmd envCli) $ Opt.progDesc "Get the node's current protocol parameters" - , Just - $ subParser "constitution-hash" - $ Opt.info (pQueryConstitutionHashCmd envCli) - $ Opt.progDesc "Get the constitution hash" , Just $ subParser "tip" $ Opt.info (pQueryTipCmd envCli) @@ -127,15 +123,6 @@ pQueryProtocolParametersCmd envCli = <*> pNetworkId envCli <*> pMaybeOutputFile -pQueryConstitutionHashCmd :: EnvCli -> Parser (QueryCmds era) -pQueryConstitutionHashCmd envCli = - fmap QueryConstitutionHashCmd $ - QueryConstitutionHashCmdArgs - <$> pSocketPath envCli - <*> pConsensusModeParams - <*> pNetworkId envCli - <*> pMaybeOutputFile - pQueryTipCmd :: EnvCli -> Parser (QueryCmds era) pQueryTipCmd envCli = fmap QueryTipCmd $ 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 45122fa2eb..60374b282f 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help.cli @@ -364,7 +364,6 @@ Usage: cardano-cli shelley node issue-op-cert Usage: cardano-cli shelley query ( protocol-parameters - | constitution-hash | tip | stake-pools | stake-distribution @@ -397,20 +396,6 @@ Usage: cardano-cli shelley query protocol-parameters --socket-path SOCKET_PATH Get the node's current protocol parameters -Usage: cardano-cli shelley query constitution-hash --socket-path SOCKET_PATH - [ --shelley-mode - | --byron-mode - [--epoch-slots SLOTS] - | --cardano-mode - [--epoch-slots SLOTS] - ] - ( --mainnet - | --testnet-magic NATURAL - ) - [--out-file FILE] - - Get the constitution hash - Usage: cardano-cli shelley query tip --socket-path SOCKET_PATH [ --shelley-mode | --byron-mode [--epoch-slots SLOTS] @@ -1520,7 +1505,6 @@ Usage: cardano-cli allegra node issue-op-cert Usage: cardano-cli allegra query ( protocol-parameters - | constitution-hash | tip | stake-pools | stake-distribution @@ -1553,20 +1537,6 @@ Usage: cardano-cli allegra query protocol-parameters --socket-path SOCKET_PATH Get the node's current protocol parameters -Usage: cardano-cli allegra query constitution-hash --socket-path SOCKET_PATH - [ --shelley-mode - | --byron-mode - [--epoch-slots SLOTS] - | --cardano-mode - [--epoch-slots SLOTS] - ] - ( --mainnet - | --testnet-magic NATURAL - ) - [--out-file FILE] - - Get the constitution hash - Usage: cardano-cli allegra query tip --socket-path SOCKET_PATH [ --shelley-mode | --byron-mode [--epoch-slots SLOTS] @@ -2674,7 +2644,6 @@ Usage: cardano-cli mary node issue-op-cert Usage: cardano-cli mary query ( protocol-parameters - | constitution-hash | tip | stake-pools | stake-distribution @@ -2707,20 +2676,6 @@ Usage: cardano-cli mary query protocol-parameters --socket-path SOCKET_PATH Get the node's current protocol parameters -Usage: cardano-cli mary query constitution-hash --socket-path SOCKET_PATH - [ --shelley-mode - | --byron-mode - [--epoch-slots SLOTS] - | --cardano-mode - [--epoch-slots SLOTS] - ] - ( --mainnet - | --testnet-magic NATURAL - ) - [--out-file FILE] - - Get the constitution hash - Usage: cardano-cli mary query tip --socket-path SOCKET_PATH [ --shelley-mode | --byron-mode [--epoch-slots SLOTS] @@ -3805,7 +3760,6 @@ Usage: cardano-cli alonzo node issue-op-cert Usage: cardano-cli alonzo query ( protocol-parameters - | constitution-hash | tip | stake-pools | stake-distribution @@ -3838,20 +3792,6 @@ Usage: cardano-cli alonzo query protocol-parameters --socket-path SOCKET_PATH Get the node's current protocol parameters -Usage: cardano-cli alonzo query constitution-hash --socket-path SOCKET_PATH - [ --shelley-mode - | --byron-mode - [--epoch-slots SLOTS] - | --cardano-mode - [--epoch-slots SLOTS] - ] - ( --mainnet - | --testnet-magic NATURAL - ) - [--out-file FILE] - - Get the constitution hash - Usage: cardano-cli alonzo query tip --socket-path SOCKET_PATH [ --shelley-mode | --byron-mode [--epoch-slots SLOTS] @@ -4984,7 +4924,6 @@ Usage: cardano-cli babbage node issue-op-cert Usage: cardano-cli babbage query ( protocol-parameters - | constitution-hash | tip | stake-pools | stake-distribution @@ -5017,20 +4956,6 @@ Usage: cardano-cli babbage query protocol-parameters --socket-path SOCKET_PATH Get the node's current protocol parameters -Usage: cardano-cli babbage query constitution-hash --socket-path SOCKET_PATH - [ --shelley-mode - | --byron-mode - [--epoch-slots SLOTS] - | --cardano-mode - [--epoch-slots SLOTS] - ] - ( --mainnet - | --testnet-magic NATURAL - ) - [--out-file FILE] - - Get the constitution hash - Usage: cardano-cli babbage query tip --socket-path SOCKET_PATH [ --shelley-mode | --byron-mode [--epoch-slots SLOTS] @@ -6427,7 +6352,6 @@ Usage: cardano-cli conway node issue-op-cert Usage: cardano-cli conway query ( protocol-parameters - | constitution-hash | tip | stake-pools | stake-distribution @@ -6465,20 +6389,6 @@ Usage: cardano-cli conway query protocol-parameters --socket-path SOCKET_PATH Get the node's current protocol parameters -Usage: cardano-cli conway query constitution-hash --socket-path SOCKET_PATH - [ --shelley-mode - | --byron-mode - [--epoch-slots SLOTS] - | --cardano-mode - [--epoch-slots SLOTS] - ] - ( --mainnet - | --testnet-magic NATURAL - ) - [--out-file FILE] - - Get the constitution hash - Usage: cardano-cli conway query tip --socket-path SOCKET_PATH [ --shelley-mode | --byron-mode [--epoch-slots SLOTS] @@ -7731,7 +7641,6 @@ Usage: cardano-cli latest node issue-op-cert Usage: cardano-cli latest query ( protocol-parameters - | constitution-hash | tip | stake-pools | stake-distribution @@ -7764,20 +7673,6 @@ Usage: cardano-cli latest query protocol-parameters --socket-path SOCKET_PATH Get the node's current protocol parameters -Usage: cardano-cli latest query constitution-hash --socket-path SOCKET_PATH - [ --shelley-mode - | --byron-mode - [--epoch-slots SLOTS] - | --cardano-mode - [--epoch-slots SLOTS] - ] - ( --mainnet - | --testnet-magic NATURAL - ) - [--out-file FILE] - - Get the constitution hash - Usage: cardano-cli latest query tip --socket-path SOCKET_PATH [ --shelley-mode | --byron-mode [--epoch-slots SLOTS] diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query.cli index f30407b44d..96755ee947 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query.cli @@ -1,6 +1,5 @@ Usage: cardano-cli allegra query ( protocol-parameters - | constitution-hash | tip | stake-pools | stake-distribution @@ -24,7 +23,6 @@ Available options: Available commands: protocol-parameters Get the node's current protocol parameters - constitution-hash Get the constitution hash tip Get the node's current tip (slot no, hash, block no) stake-pools Get the node's current set of stake pool ids stake-distribution Get the node's current aggregated stake distribution diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query.cli index 8529dfe818..6f512f5f29 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query.cli @@ -1,6 +1,5 @@ Usage: cardano-cli alonzo query ( protocol-parameters - | constitution-hash | tip | stake-pools | stake-distribution @@ -24,7 +23,6 @@ Available options: Available commands: protocol-parameters Get the node's current protocol parameters - constitution-hash Get the constitution hash tip Get the node's current tip (slot no, hash, block no) stake-pools Get the node's current set of stake pool ids stake-distribution Get the node's current aggregated stake distribution diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query.cli index 727ab884a0..38b72073ed 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query.cli @@ -1,6 +1,5 @@ Usage: cardano-cli babbage query ( protocol-parameters - | constitution-hash | tip | stake-pools | stake-distribution @@ -24,7 +23,6 @@ Available options: Available commands: protocol-parameters Get the node's current protocol parameters - constitution-hash Get the constitution hash tip Get the node's current tip (slot no, hash, block no) stake-pools Get the node's current set of stake pool ids stake-distribution Get the node's current aggregated stake distribution diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query.cli index d82bcade0c..1b86ab6dda 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query.cli @@ -1,6 +1,5 @@ Usage: cardano-cli conway query ( protocol-parameters - | constitution-hash | tip | stake-pools | stake-distribution @@ -29,7 +28,6 @@ Available options: Available commands: protocol-parameters Get the node's current protocol parameters - constitution-hash Get the constitution hash tip Get the node's current tip (slot no, hash, block no) stake-pools Get the node's current set of stake pool ids stake-distribution Get the node's current aggregated stake distribution diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query.cli index d311792456..ac7d1d7624 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query.cli @@ -1,6 +1,5 @@ Usage: cardano-cli latest query ( protocol-parameters - | constitution-hash | tip | stake-pools | stake-distribution @@ -24,7 +23,6 @@ Available options: Available commands: protocol-parameters Get the node's current protocol parameters - constitution-hash Get the constitution hash tip Get the node's current tip (slot no, hash, block no) stake-pools Get the node's current set of stake pool ids stake-distribution Get the node's current aggregated stake distribution diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query.cli index 0faa10a768..19c6ea0e20 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query.cli @@ -1,6 +1,5 @@ Usage: cardano-cli mary query ( protocol-parameters - | constitution-hash | tip | stake-pools | stake-distribution @@ -24,7 +23,6 @@ Available options: Available commands: protocol-parameters Get the node's current protocol parameters - constitution-hash Get the constitution hash tip Get the node's current tip (slot no, hash, block no) stake-pools Get the node's current set of stake pool ids stake-distribution Get the node's current aggregated stake distribution diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query.cli index aee2335c58..b79366e2d7 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query.cli @@ -1,6 +1,5 @@ Usage: cardano-cli shelley query ( protocol-parameters - | constitution-hash | tip | stake-pools | stake-distribution @@ -24,7 +23,6 @@ Available options: Available commands: protocol-parameters Get the node's current protocol parameters - constitution-hash Get the constitution hash tip Get the node's current tip (slot no, hash, block no) stake-pools Get the node's current set of stake pool ids stake-distribution Get the node's current aggregated stake distribution