From 6d8e69bdbf5284bc9879f0005eb7bd9b963ef1b7 Mon Sep 17 00:00:00 2001 From: Carl Hammann Date: Mon, 11 Dec 2023 15:14:26 +0100 Subject: [PATCH] Make "query pool-state" default to all pools; clarify flags --- .../Cardano/CLI/EraBased/Commands/Query.hs | 2 +- .../src/Cardano/CLI/EraBased/Options/Query.hs | 2 +- .../src/Cardano/CLI/EraBased/Run/Query.hs | 8 ++- .../src/Cardano/CLI/Legacy/Commands/Query.hs | 2 +- cardano-cli/src/Cardano/CLI/Legacy/Options.hs | 2 +- .../cardano-cli-golden/files/golden/help.cli | 72 ++++++++++++++----- .../golden/help/allegra_query_pool-params.cli | 5 +- .../golden/help/allegra_query_pool-state.cli | 5 +- .../golden/help/alonzo_query_pool-params.cli | 5 +- .../golden/help/alonzo_query_pool-state.cli | 5 +- .../golden/help/babbage_query_pool-params.cli | 5 +- .../golden/help/babbage_query_pool-state.cli | 5 +- .../golden/help/conway_query_pool-params.cli | 5 +- .../golden/help/conway_query_pool-state.cli | 5 +- .../golden/help/latest_query_pool-params.cli | 5 +- .../golden/help/latest_query_pool-state.cli | 5 +- .../golden/help/legacy_query_pool-params.cli | 5 +- .../golden/help/legacy_query_pool-state.cli | 5 +- .../golden/help/mary_query_pool-params.cli | 5 +- .../golden/help/mary_query_pool-state.cli | 5 +- .../files/golden/help/query_pool-params.cli | 5 +- .../files/golden/help/query_pool-state.cli | 5 +- .../golden/help/shelley_query_pool-params.cli | 5 +- .../golden/help/shelley_query_pool-state.cli | 5 +- 24 files changed, 136 insertions(+), 42 deletions(-) diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Commands/Query.hs b/cardano-cli/src/Cardano/CLI/EraBased/Commands/Query.hs index 5a3ffbc4e2..cb3335ad54 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Commands/Query.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Commands/Query.hs @@ -155,7 +155,7 @@ data QueryPoolStateCmdArgs = QueryPoolStateCmdArgs { nodeSocketPath :: !SocketPath , consensusModeParams :: !ConsensusModeParams , networkId :: !NetworkId - , poolIds :: ![Hash StakePoolKey] + , allOrOnlyPoolIds :: !(AllOrOnly [Hash StakePoolKey]) } deriving (Generic, Show) data QueryTxMempoolCmdArgs = QueryTxMempoolCmdArgs diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Options/Query.hs b/cardano-cli/src/Cardano/CLI/EraBased/Options/Query.hs index ca98268c3b..a049fa87ff 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Options/Query.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Options/Query.hs @@ -216,7 +216,7 @@ pQueryPoolStateCmd envCli = <$> pSocketPath envCli <*> pConsensusModeParams <*> pNetworkId envCli - <*> many (pStakePoolVerificationKeyHash Nothing) + <*> pAllStakePoolsOrOnly pQueryTxMempoolCmd :: EnvCli -> Parser (QueryCmds era) pQueryTxMempoolCmd envCli = diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs b/cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs index 39d35d5b94..ca745e60c8 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs @@ -619,7 +619,7 @@ runQueryPoolStateCmd { Cmd.nodeSocketPath , Cmd.consensusModeParams , Cmd.networkId - , Cmd.poolIds + , Cmd.allOrOnlyPoolIds } = do let localNodeConnInfo = LocalNodeConnectInfo consensusModeParams networkId nodeSocketPath @@ -633,7 +633,11 @@ runQueryPoolStateCmd beo <- requireEon BabbageEra era - result <- lift (queryPoolState beo $ Just $ Set.fromList poolIds) + let poolFilter = case allOrOnlyPoolIds of + All -> Nothing + Only poolIds -> Just $ Set.fromList poolIds + + result <- lift (queryPoolState beo poolFilter) & onLeft (left . QueryCmdUnsupportedNtcVersion) & onLeft (left . QueryCmdLocalStateQueryError . EraMismatchError) diff --git a/cardano-cli/src/Cardano/CLI/Legacy/Commands/Query.hs b/cardano-cli/src/Cardano/CLI/Legacy/Commands/Query.hs index 7dd87051dc..fea781e535 100644 --- a/cardano-cli/src/Cardano/CLI/Legacy/Commands/Query.hs +++ b/cardano-cli/src/Cardano/CLI/Legacy/Commands/Query.hs @@ -146,7 +146,7 @@ data LegacyQueryPoolStateCmdArgs = LegacyQueryPoolStateCmdArgs { nodeSocketPath :: !SocketPath , consensusModeParams :: !ConsensusModeParams , networkId :: !NetworkId - , poolIds :: ![Hash StakePoolKey] + , allOrOnlyPoolIds :: !(AllOrOnly [Hash StakePoolKey]) } deriving (Generic, Show) data LegacyQueryTxMempoolCmdArgs = LegacyQueryTxMempoolCmdArgs diff --git a/cardano-cli/src/Cardano/CLI/Legacy/Options.hs b/cardano-cli/src/Cardano/CLI/Legacy/Options.hs index d4f703770e..4373aff757 100644 --- a/cardano-cli/src/Cardano/CLI/Legacy/Options.hs +++ b/cardano-cli/src/Cardano/CLI/Legacy/Options.hs @@ -735,7 +735,7 @@ pQueryCmds envCli = <$> pSocketPath envCli <*> pConsensusModeParams <*> pNetworkId envCli - <*> many (pStakePoolVerificationKeyHash Nothing) + <*> pAllStakePoolsOrOnly pQueryTxMempool :: Parser LegacyQueryCmds pQueryTxMempool = 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 225d1d3e0e..715823489d 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help.cli @@ -552,7 +552,9 @@ Usage: cardano-cli shelley query pool-params --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] DEPRECATED. Use query pool-state instead. Dump the pool parameters (Ledger.NewEpochState.esLState._delegationState._pState._pParams -- advanced @@ -593,7 +595,9 @@ Usage: cardano-cli shelley query pool-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] Dump the pool state @@ -1710,7 +1714,9 @@ Usage: cardano-cli allegra query pool-params --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] DEPRECATED. Use query pool-state instead. Dump the pool parameters (Ledger.NewEpochState.esLState._delegationState._pState._pParams -- advanced @@ -1751,7 +1757,9 @@ Usage: cardano-cli allegra query pool-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] Dump the pool state @@ -2865,7 +2873,9 @@ Usage: cardano-cli mary query pool-params --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] DEPRECATED. Use query pool-state instead. Dump the pool parameters (Ledger.NewEpochState.esLState._delegationState._pState._pParams -- advanced @@ -2904,7 +2914,9 @@ Usage: cardano-cli mary query pool-state --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] (--mainnet | --testnet-magic NATURAL) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] Dump the pool state @@ -4012,7 +4024,9 @@ Usage: cardano-cli alonzo query pool-params --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] DEPRECATED. Use query pool-state instead. Dump the pool parameters (Ledger.NewEpochState.esLState._delegationState._pState._pParams -- advanced @@ -4053,7 +4067,9 @@ Usage: cardano-cli alonzo query pool-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] Dump the pool state @@ -5195,7 +5211,9 @@ Usage: cardano-cli babbage query pool-params --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] DEPRECATED. Use query pool-state instead. Dump the pool parameters (Ledger.NewEpochState.esLState._delegationState._pState._pParams -- advanced @@ -5236,7 +5254,9 @@ Usage: cardano-cli babbage query pool-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] Dump the pool state @@ -6585,7 +6605,9 @@ Usage: cardano-cli conway query pool-params --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] DEPRECATED. Use query pool-state instead. Dump the pool parameters (Ledger.NewEpochState.esLState._delegationState._pState._pParams -- advanced @@ -6626,7 +6648,9 @@ Usage: cardano-cli conway query pool-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] Dump the pool state @@ -7880,7 +7904,9 @@ Usage: cardano-cli latest query pool-params --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] DEPRECATED. Use query pool-state instead. Dump the pool parameters (Ledger.NewEpochState.esLState._delegationState._pState._pParams -- advanced @@ -7921,7 +7947,9 @@ Usage: cardano-cli latest query pool-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] Dump the pool state @@ -8906,7 +8934,9 @@ Usage: cardano-cli legacy query pool-params --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] DEPRECATED. Use query pool-state instead. Dump the pool parameters (Ledger.NewEpochState.esLState._delegationState._pState._pParams -- advanced @@ -8947,7 +8977,9 @@ Usage: cardano-cli legacy query pool-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] Dump the pool state @@ -10139,7 +10171,9 @@ Usage: cardano-cli query stake-snapshot --socket-path SOCKET_PATH Usage: cardano-cli query pool-params --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] (--mainnet | --testnet-magic NATURAL) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] DEPRECATED. Use query pool-state instead. Dump the pool parameters (Ledger.NewEpochState.esLState._delegationState._pState._pParams -- advanced @@ -10175,7 +10209,9 @@ Usage: cardano-cli query kes-period-info --socket-path SOCKET_PATH Usage: cardano-cli query pool-state --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] (--mainnet | --testnet-magic NATURAL) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] Dump the pool state diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query_pool-params.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query_pool-params.cli index 72ea33ab0a..37b6aaf42c 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query_pool-params.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query_pool-params.cli @@ -4,7 +4,9 @@ Usage: cardano-cli allegra query pool-params --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] DEPRECATED. Use query pool-state instead. Dump the pool parameters (Ledger.NewEpochState.esLState._delegationState._pState._pParams -- advanced @@ -24,6 +26,7 @@ Available options: CARDANO_NODE_NETWORK_ID environment variable --testnet-magic NATURAL Specify a testnet magic id. This overrides the CARDANO_NODE_NETWORK_ID environment variable + --all-stake-pools Query for all stake pools --stake-pool-id STAKE_POOL_ID Stake pool ID/verification key hash (either Bech32-encoded or hex-encoded). Zero or more diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query_pool-state.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query_pool-state.cli index a4b9c95ba1..be066a0b27 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query_pool-state.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query_pool-state.cli @@ -4,7 +4,9 @@ Usage: cardano-cli allegra query pool-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] Dump the pool state @@ -22,6 +24,7 @@ Available options: CARDANO_NODE_NETWORK_ID environment variable --testnet-magic NATURAL Specify a testnet magic id. This overrides the CARDANO_NODE_NETWORK_ID environment variable + --all-stake-pools Query for all stake pools --stake-pool-id STAKE_POOL_ID Stake pool ID/verification key hash (either Bech32-encoded or hex-encoded). Zero or more diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query_pool-params.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query_pool-params.cli index 4c95228f0f..a77a0bd3ce 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query_pool-params.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query_pool-params.cli @@ -4,7 +4,9 @@ Usage: cardano-cli alonzo query pool-params --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] DEPRECATED. Use query pool-state instead. Dump the pool parameters (Ledger.NewEpochState.esLState._delegationState._pState._pParams -- advanced @@ -24,6 +26,7 @@ Available options: CARDANO_NODE_NETWORK_ID environment variable --testnet-magic NATURAL Specify a testnet magic id. This overrides the CARDANO_NODE_NETWORK_ID environment variable + --all-stake-pools Query for all stake pools --stake-pool-id STAKE_POOL_ID Stake pool ID/verification key hash (either Bech32-encoded or hex-encoded). Zero or more diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query_pool-state.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query_pool-state.cli index 41e1352113..9dcc53d0b8 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query_pool-state.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query_pool-state.cli @@ -4,7 +4,9 @@ Usage: cardano-cli alonzo query pool-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] Dump the pool state @@ -22,6 +24,7 @@ Available options: CARDANO_NODE_NETWORK_ID environment variable --testnet-magic NATURAL Specify a testnet magic id. This overrides the CARDANO_NODE_NETWORK_ID environment variable + --all-stake-pools Query for all stake pools --stake-pool-id STAKE_POOL_ID Stake pool ID/verification key hash (either Bech32-encoded or hex-encoded). Zero or more diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query_pool-params.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query_pool-params.cli index 54c490a6ff..9361a0086c 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query_pool-params.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query_pool-params.cli @@ -4,7 +4,9 @@ Usage: cardano-cli babbage query pool-params --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] DEPRECATED. Use query pool-state instead. Dump the pool parameters (Ledger.NewEpochState.esLState._delegationState._pState._pParams -- advanced @@ -24,6 +26,7 @@ Available options: CARDANO_NODE_NETWORK_ID environment variable --testnet-magic NATURAL Specify a testnet magic id. This overrides the CARDANO_NODE_NETWORK_ID environment variable + --all-stake-pools Query for all stake pools --stake-pool-id STAKE_POOL_ID Stake pool ID/verification key hash (either Bech32-encoded or hex-encoded). Zero or more diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query_pool-state.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query_pool-state.cli index 0e3e3cfad3..a2edf8db6e 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query_pool-state.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query_pool-state.cli @@ -4,7 +4,9 @@ Usage: cardano-cli babbage query pool-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] Dump the pool state @@ -22,6 +24,7 @@ Available options: CARDANO_NODE_NETWORK_ID environment variable --testnet-magic NATURAL Specify a testnet magic id. This overrides the CARDANO_NODE_NETWORK_ID environment variable + --all-stake-pools Query for all stake pools --stake-pool-id STAKE_POOL_ID Stake pool ID/verification key hash (either Bech32-encoded or hex-encoded). Zero or more diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_pool-params.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_pool-params.cli index 9fd88cba5c..c0485733d9 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_pool-params.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_pool-params.cli @@ -4,7 +4,9 @@ Usage: cardano-cli conway query pool-params --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] DEPRECATED. Use query pool-state instead. Dump the pool parameters (Ledger.NewEpochState.esLState._delegationState._pState._pParams -- advanced @@ -24,6 +26,7 @@ Available options: CARDANO_NODE_NETWORK_ID environment variable --testnet-magic NATURAL Specify a testnet magic id. This overrides the CARDANO_NODE_NETWORK_ID environment variable + --all-stake-pools Query for all stake pools --stake-pool-id STAKE_POOL_ID Stake pool ID/verification key hash (either Bech32-encoded or hex-encoded). Zero or more diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_pool-state.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_pool-state.cli index 7764e8ce7f..9454c81ab5 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_pool-state.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_pool-state.cli @@ -4,7 +4,9 @@ Usage: cardano-cli conway query pool-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] Dump the pool state @@ -22,6 +24,7 @@ Available options: CARDANO_NODE_NETWORK_ID environment variable --testnet-magic NATURAL Specify a testnet magic id. This overrides the CARDANO_NODE_NETWORK_ID environment variable + --all-stake-pools Query for all stake pools --stake-pool-id STAKE_POOL_ID Stake pool ID/verification key hash (either Bech32-encoded or hex-encoded). Zero or more diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_pool-params.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_pool-params.cli index d249b3c76b..cf91a3addb 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_pool-params.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_pool-params.cli @@ -4,7 +4,9 @@ Usage: cardano-cli latest query pool-params --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] DEPRECATED. Use query pool-state instead. Dump the pool parameters (Ledger.NewEpochState.esLState._delegationState._pState._pParams -- advanced @@ -24,6 +26,7 @@ Available options: CARDANO_NODE_NETWORK_ID environment variable --testnet-magic NATURAL Specify a testnet magic id. This overrides the CARDANO_NODE_NETWORK_ID environment variable + --all-stake-pools Query for all stake pools --stake-pool-id STAKE_POOL_ID Stake pool ID/verification key hash (either Bech32-encoded or hex-encoded). Zero or more diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_pool-state.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_pool-state.cli index 21deca6d1e..ee44a3e75b 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_pool-state.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_pool-state.cli @@ -4,7 +4,9 @@ Usage: cardano-cli latest query pool-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] Dump the pool state @@ -22,6 +24,7 @@ Available options: CARDANO_NODE_NETWORK_ID environment variable --testnet-magic NATURAL Specify a testnet magic id. This overrides the CARDANO_NODE_NETWORK_ID environment variable + --all-stake-pools Query for all stake pools --stake-pool-id STAKE_POOL_ID Stake pool ID/verification key hash (either Bech32-encoded or hex-encoded). Zero or more diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_query_pool-params.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_query_pool-params.cli index 3576d6118e..644c90f5d0 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_query_pool-params.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_query_pool-params.cli @@ -4,7 +4,9 @@ Usage: cardano-cli legacy query pool-params --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] DEPRECATED. Use query pool-state instead. Dump the pool parameters (Ledger.NewEpochState.esLState._delegationState._pState._pParams -- advanced @@ -24,6 +26,7 @@ Available options: CARDANO_NODE_NETWORK_ID environment variable --testnet-magic NATURAL Specify a testnet magic id. This overrides the CARDANO_NODE_NETWORK_ID environment variable + --all-stake-pools Query for all stake pools --stake-pool-id STAKE_POOL_ID Stake pool ID/verification key hash (either Bech32-encoded or hex-encoded). Zero or more diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_query_pool-state.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_query_pool-state.cli index f58e0cc14c..e519bfb47b 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_query_pool-state.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_query_pool-state.cli @@ -4,7 +4,9 @@ Usage: cardano-cli legacy query pool-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] Dump the pool state @@ -22,6 +24,7 @@ Available options: CARDANO_NODE_NETWORK_ID environment variable --testnet-magic NATURAL Specify a testnet magic id. This overrides the CARDANO_NODE_NETWORK_ID environment variable + --all-stake-pools Query for all stake pools --stake-pool-id STAKE_POOL_ID Stake pool ID/verification key hash (either Bech32-encoded or hex-encoded). Zero or more diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query_pool-params.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query_pool-params.cli index 36b5499823..e49616c292 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query_pool-params.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query_pool-params.cli @@ -4,7 +4,9 @@ Usage: cardano-cli mary query pool-params --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] DEPRECATED. Use query pool-state instead. Dump the pool parameters (Ledger.NewEpochState.esLState._delegationState._pState._pParams -- advanced @@ -24,6 +26,7 @@ Available options: CARDANO_NODE_NETWORK_ID environment variable --testnet-magic NATURAL Specify a testnet magic id. This overrides the CARDANO_NODE_NETWORK_ID environment variable + --all-stake-pools Query for all stake pools --stake-pool-id STAKE_POOL_ID Stake pool ID/verification key hash (either Bech32-encoded or hex-encoded). Zero or more diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query_pool-state.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query_pool-state.cli index 1c040f627f..48242070cd 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query_pool-state.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query_pool-state.cli @@ -2,7 +2,9 @@ Usage: cardano-cli mary query pool-state --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] (--mainnet | --testnet-magic NATURAL) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] Dump the pool state @@ -20,6 +22,7 @@ Available options: CARDANO_NODE_NETWORK_ID environment variable --testnet-magic NATURAL Specify a testnet magic id. This overrides the CARDANO_NODE_NETWORK_ID environment variable + --all-stake-pools Query for all stake pools --stake-pool-id STAKE_POOL_ID Stake pool ID/verification key hash (either Bech32-encoded or hex-encoded). Zero or more diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/query_pool-params.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/query_pool-params.cli index d85ee7fd0c..ba376d44ab 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/query_pool-params.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/query_pool-params.cli @@ -1,7 +1,9 @@ Usage: cardano-cli query pool-params --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] (--mainnet | --testnet-magic NATURAL) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] DEPRECATED. Use query pool-state instead. Dump the pool parameters (Ledger.NewEpochState.esLState._delegationState._pState._pParams -- advanced @@ -21,6 +23,7 @@ Available options: CARDANO_NODE_NETWORK_ID environment variable --testnet-magic NATURAL Specify a testnet magic id. This overrides the CARDANO_NODE_NETWORK_ID environment variable + --all-stake-pools Query for all stake pools --stake-pool-id STAKE_POOL_ID Stake pool ID/verification key hash (either Bech32-encoded or hex-encoded). Zero or more diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/query_pool-state.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/query_pool-state.cli index cf3deedaa5..621bfbfcf6 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/query_pool-state.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/query_pool-state.cli @@ -1,7 +1,9 @@ Usage: cardano-cli query pool-state --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] (--mainnet | --testnet-magic NATURAL) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] Dump the pool state @@ -19,6 +21,7 @@ Available options: CARDANO_NODE_NETWORK_ID environment variable --testnet-magic NATURAL Specify a testnet magic id. This overrides the CARDANO_NODE_NETWORK_ID environment variable + --all-stake-pools Query for all stake pools --stake-pool-id STAKE_POOL_ID Stake pool ID/verification key hash (either Bech32-encoded or hex-encoded). Zero or more diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query_pool-params.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query_pool-params.cli index 266ce2dd6a..6c3db76343 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query_pool-params.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query_pool-params.cli @@ -4,7 +4,9 @@ Usage: cardano-cli shelley query pool-params --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] DEPRECATED. Use query pool-state instead. Dump the pool parameters (Ledger.NewEpochState.esLState._delegationState._pState._pParams -- advanced @@ -24,6 +26,7 @@ Available options: CARDANO_NODE_NETWORK_ID environment variable --testnet-magic NATURAL Specify a testnet magic id. This overrides the CARDANO_NODE_NETWORK_ID environment variable + --all-stake-pools Query for all stake pools --stake-pool-id STAKE_POOL_ID Stake pool ID/verification key hash (either Bech32-encoded or hex-encoded). Zero or more diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query_pool-state.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query_pool-state.cli index 92bf1e5437..8a42f980f8 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query_pool-state.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query_pool-state.cli @@ -4,7 +4,9 @@ Usage: cardano-cli shelley query pool-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - [--stake-pool-id STAKE_POOL_ID] + [ --all-stake-pools + | [--stake-pool-id STAKE_POOL_ID] + ] Dump the pool state @@ -22,6 +24,7 @@ Available options: CARDANO_NODE_NETWORK_ID environment variable --testnet-magic NATURAL Specify a testnet magic id. This overrides the CARDANO_NODE_NETWORK_ID environment variable + --all-stake-pools Query for all stake pools --stake-pool-id STAKE_POOL_ID Stake pool ID/verification key hash (either Bech32-encoded or hex-encoded). Zero or more