Skip to content

Commit

Permalink
Merge pull request #370 from input-output-hk/smelc/remove-era-constit…
Browse files Browse the repository at this point in the history
…ution-hash

Remove eras' constitution-hash
  • Loading branch information
smelc authored Oct 13, 2023
2 parents 332351d + 3127e48 commit a6034e5
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 132 deletions.
13 changes: 0 additions & 13 deletions cardano-cli/src/Cardano/CLI/EraBased/Options/Query.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 $
Expand Down
105 changes: 0 additions & 105 deletions cardano-cli/test/cardano-cli-golden/files/golden/help.cli
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Usage: cardano-cli allegra query
( protocol-parameters
| constitution-hash
| tip
| stake-pools
| stake-distribution
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Usage: cardano-cli alonzo query
( protocol-parameters
| constitution-hash
| tip
| stake-pools
| stake-distribution
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Usage: cardano-cli babbage query
( protocol-parameters
| constitution-hash
| tip
| stake-pools
| stake-distribution
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Usage: cardano-cli conway query
( protocol-parameters
| constitution-hash
| tip
| stake-pools
| stake-distribution
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Usage: cardano-cli latest query
( protocol-parameters
| constitution-hash
| tip
| stake-pools
| stake-distribution
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Usage: cardano-cli mary query
( protocol-parameters
| constitution-hash
| tip
| stake-pools
| stake-distribution
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Usage: cardano-cli shelley query
( protocol-parameters
| constitution-hash
| tip
| stake-pools
| stake-distribution
Expand All @@ -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
Expand Down

0 comments on commit a6034e5

Please sign in to comment.