From 7c67382c717654e2064588f6a9e53e75a06c65e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Hurlin?= Date: Fri, 29 Nov 2024 18:16:25 +0100 Subject: [PATCH 1/2] Share code of fields of queries --- .../Cardano/CLI/EraBased/Commands/Query.hs | 101 ++----- .../src/Cardano/CLI/EraBased/Options/Query.hs | 114 +++----- .../src/Cardano/CLI/EraBased/Run/Query.hs | 254 +++++++++++------- 3 files changed, 221 insertions(+), 248 deletions(-) diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Commands/Query.hs b/cardano-cli/src/Cardano/CLI/EraBased/Commands/Query.hs index 74945dd81..25e246fff 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Commands/Query.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Commands/Query.hs @@ -5,6 +5,7 @@ module Cardano.CLI.EraBased.Commands.Query ( QueryCmds (..) + , QueryCommons (..) , QueryCommitteeMembersStateCmdArgs (..) , QueryLeadershipScheduleCmdArgs (..) , QueryProtocolParametersCmdArgs (..) @@ -67,15 +68,21 @@ data QueryCmds era | QueryTreasuryValueCmd !(QueryTreasuryValueCmdArgs era) deriving (Generic, Show) -data QueryLeadershipScheduleCmdArgs = QueryLeadershipScheduleCmdArgs +-- | Fields that are common to most queries +data QueryCommons = QueryCommons { nodeSocketPath :: !SocketPath , consensusModeParams :: !ConsensusModeParams , networkId :: !NetworkId + , target :: !(Consensus.Target ChainPoint) + } + deriving (Generic, Show) + +data QueryLeadershipScheduleCmdArgs = QueryLeadershipScheduleCmdArgs + { commons :: !QueryCommons , genesisFp :: !GenesisFile , poolColdVerKeyFile :: !(VerificationKeyOrHashOrFile StakePoolKey) , vrkSkeyFp :: !(SigningKeyFile In) , whichSchedule :: !EpochLeadershipSchedule - , target :: !(Consensus.Target ChainPoint) , format :: Maybe OutputFormatJsonOrText , mOutFile :: !(Maybe (File () Out)) } @@ -90,100 +97,70 @@ data QueryProtocolParametersCmdArgs = QueryProtocolParametersCmdArgs deriving (Generic, Show) data QueryTipCmdArgs = QueryTipCmdArgs - { nodeSocketPath :: !SocketPath - , consensusModeParams :: !ConsensusModeParams - , networkId :: !NetworkId - , target :: !(Consensus.Target ChainPoint) + { commons :: !QueryCommons , mOutFile :: !(Maybe (File () Out)) } deriving (Generic, Show) data QueryStakePoolsCmdArgs = QueryStakePoolsCmdArgs - { nodeSocketPath :: !SocketPath - , consensusModeParams :: !ConsensusModeParams - , networkId :: !NetworkId - , target :: !(Consensus.Target ChainPoint) + { commons :: !QueryCommons , format :: Maybe OutputFormatJsonOrText , mOutFile :: !(Maybe (File () Out)) } deriving (Generic, Show) data QueryStakeDistributionCmdArgs = QueryStakeDistributionCmdArgs - { nodeSocketPath :: !SocketPath - , consensusModeParams :: !ConsensusModeParams - , networkId :: !NetworkId - , target :: !(Consensus.Target ChainPoint) + { commons :: !QueryCommons , format :: Maybe OutputFormatJsonOrText , mOutFile :: !(Maybe (File () Out)) } deriving (Generic, Show) data QueryStakeAddressInfoCmdArgs = QueryStakeAddressInfoCmdArgs - { nodeSocketPath :: !SocketPath - , consensusModeParams :: !ConsensusModeParams + { commons :: !QueryCommons , addr :: !StakeAddress - , networkId :: !NetworkId - , target :: !(Consensus.Target ChainPoint) , mOutFile :: !(Maybe (File () Out)) } deriving (Generic, Show) data QueryUTxOCmdArgs = QueryUTxOCmdArgs - { nodeSocketPath :: !SocketPath - , consensusModeParams :: !ConsensusModeParams + { commons :: !QueryCommons , queryFilter :: !QueryUTxOFilter - , networkId :: !NetworkId - , target :: !(Consensus.Target ChainPoint) , format :: Maybe OutputFormatJsonOrText , mOutFile :: !(Maybe (File () Out)) } deriving (Generic, Show) data QueryLedgerStateCmdArgs = QueryLedgerStateCmdArgs - { nodeSocketPath :: !SocketPath - , consensusModeParams :: !ConsensusModeParams - , networkId :: !NetworkId - , target :: !(Consensus.Target ChainPoint) + { commons :: !QueryCommons , mOutFile :: !(Maybe (File () Out)) } deriving (Generic, Show) data QueryProtocolStateCmdArgs = QueryProtocolStateCmdArgs - { nodeSocketPath :: !SocketPath - , consensusModeParams :: !ConsensusModeParams - , networkId :: !NetworkId - , target :: !(Consensus.Target ChainPoint) + { commons :: !QueryCommons , mOutFile :: !(Maybe (File () Out)) } deriving (Generic, Show) data QueryStakeSnapshotCmdArgs = QueryStakeSnapshotCmdArgs - { nodeSocketPath :: !SocketPath - , consensusModeParams :: !ConsensusModeParams - , networkId :: !NetworkId + { commons :: !QueryCommons , allOrOnlyPoolIds :: !(AllOrOnly (Hash StakePoolKey)) - , target :: !(Consensus.Target ChainPoint) , mOutFile :: !(Maybe (File () Out)) } deriving (Generic, Show) data QueryKesPeriodInfoCmdArgs = QueryKesPeriodInfoCmdArgs - { nodeSocketPath :: !SocketPath - , consensusModeParams :: !ConsensusModeParams - , networkId :: !NetworkId + { commons :: !QueryCommons , nodeOpCertFp :: !(File () In) -- ^ Node operational certificate - , target :: !(Consensus.Target ChainPoint) , mOutFile :: !(Maybe (File () Out)) } deriving (Generic, Show) data QueryPoolStateCmdArgs = QueryPoolStateCmdArgs - { nodeSocketPath :: !SocketPath - , consensusModeParams :: !ConsensusModeParams - , networkId :: !NetworkId + { commons :: !QueryCommons , allOrOnlyPoolIds :: !(AllOrOnly (Hash StakePoolKey)) - , target :: !(Consensus.Target ChainPoint) , mOutFile :: !(Maybe (File () Out)) } deriving (Generic, Show) @@ -198,20 +175,14 @@ data QueryTxMempoolCmdArgs = QueryTxMempoolCmdArgs deriving (Generic, Show) data QuerySlotNumberCmdArgs = QuerySlotNumberCmdArgs - { nodeSocketPath :: !SocketPath - , consensusModeParams :: !ConsensusModeParams - , networkId :: !NetworkId - , target :: !(Consensus.Target ChainPoint) + { commons :: !QueryCommons , utcTime :: !UTCTime } deriving (Generic, Show) data QueryRefScriptSizeCmdArgs = QueryRefScriptSizeCmdArgs - { nodeSocketPath :: !SocketPath - , consensusModeParams :: !ConsensusModeParams + { commons :: !QueryCommons , transactionInputs :: !(Set TxIn) - , networkId :: !NetworkId - , target :: !(Consensus.Target ChainPoint) , format :: Maybe OutputFormatJsonOrText , mOutFile :: !(Maybe (File () Out)) } @@ -219,67 +190,49 @@ data QueryRefScriptSizeCmdArgs = QueryRefScriptSizeCmdArgs data QueryNoArgCmdArgs era = QueryNoArgCmdArgs { eon :: !(ConwayEraOnwards era) - , nodeSocketPath :: !SocketPath - , consensusModeParams :: !ConsensusModeParams - , networkId :: !NetworkId - , target :: !(Consensus.Target ChainPoint) + , commons :: !QueryCommons , mOutFile :: !(Maybe (File () Out)) } deriving Show data QueryDRepStateCmdArgs era = QueryDRepStateCmdArgs { eon :: !(ConwayEraOnwards era) - , nodeSocketPath :: !SocketPath - , consensusModeParams :: !ConsensusModeParams - , networkId :: !NetworkId + , commons :: !QueryCommons , drepHashSources :: !(AllOrOnly DRepHashSource) , includeStake :: !IncludeStake - , target :: !(Consensus.Target ChainPoint) , mOutFile :: !(Maybe (File () Out)) } deriving Show data QueryDRepStakeDistributionCmdArgs era = QueryDRepStakeDistributionCmdArgs { eon :: !(ConwayEraOnwards era) - , nodeSocketPath :: !SocketPath - , consensusModeParams :: !ConsensusModeParams - , networkId :: !NetworkId + , commons :: !QueryCommons , drepHashSources :: !(AllOrOnly DRepHashSource) - , target :: !(Consensus.Target ChainPoint) , mOutFile :: !(Maybe (File () Out)) } deriving Show data QuerySPOStakeDistributionCmdArgs era = QuerySPOStakeDistributionCmdArgs { eon :: !(ConwayEraOnwards era) - , nodeSocketPath :: !SocketPath - , consensusModeParams :: !ConsensusModeParams - , networkId :: !NetworkId + , commons :: !QueryCommons , spoHashSources :: !(AllOrOnly SPOHashSource) - , target :: !(Consensus.Target ChainPoint) , mOutFile :: !(Maybe (File () Out)) } deriving Show data QueryCommitteeMembersStateCmdArgs era = QueryCommitteeMembersStateCmdArgs { eon :: !(ConwayEraOnwards era) - , nodeSocketPath :: !SocketPath - , consensusModeParams :: !ConsensusModeParams - , networkId :: !NetworkId + , commons :: !QueryCommons , committeeColdKeys :: ![VerificationKeyOrHashOrFileOrScriptHash CommitteeColdKey] , committeeHotKeys :: ![VerificationKeyOrHashOrFileOrScriptHash CommitteeHotKey] , memberStatuses :: ![MemberStatus] - , target :: !(Consensus.Target ChainPoint) , mOutFile :: !(Maybe (File () Out)) } deriving Show data QueryTreasuryValueCmdArgs era = QueryTreasuryValueCmdArgs { eon :: !(ConwayEraOnwards era) - , nodeSocketPath :: !SocketPath - , consensusModeParams :: !ConsensusModeParams - , networkId :: !NetworkId - , target :: !(Consensus.Target ChainPoint) + , commons :: !QueryCommons , mOutFile :: !(Maybe (File () Out)) } deriving Show diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Options/Query.hs b/cardano-cli/src/Cardano/CLI/EraBased/Options/Query.hs index 490e81bd0..9cce2d924 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Options/Query.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Options/Query.hs @@ -283,21 +283,15 @@ pQueryTipCmd :: ShelleyBasedEra era -> EnvCli -> Parser (QueryCmds era) pQueryTipCmd era envCli = fmap QueryTipCmd $ QueryTipCmdArgs - <$> pSocketPath envCli - <*> pConsensusModeParams - <*> pNetworkId envCli - <*> pTarget era + <$> pQueryCommons era envCli <*> pMaybeOutputFile pQueryUTxOCmd :: ShelleyBasedEra era -> EnvCli -> Parser (QueryCmds era) pQueryUTxOCmd era envCli = fmap QueryUTxOCmd $ QueryUTxOCmdArgs - <$> pSocketPath envCli - <*> pConsensusModeParams + <$> pQueryCommons era envCli <*> pQueryUTxOFilter - <*> pNetworkId envCli - <*> pTarget era <*> (optional $ pOutputFormatJsonOrText "utxo") <*> pMaybeOutputFile @@ -305,10 +299,7 @@ pQueryStakePoolsCmd :: ShelleyBasedEra era -> EnvCli -> Parser (QueryCmds era) pQueryStakePoolsCmd era envCli = fmap QueryStakePoolsCmd $ QueryStakePoolsCmdArgs - <$> pSocketPath envCli - <*> pConsensusModeParams - <*> pNetworkId envCli - <*> pTarget era + <$> pQueryCommons era envCli <*> (optional $ pOutputFormatJsonOrText "stake-pools") <*> pMaybeOutputFile @@ -316,10 +307,7 @@ pQueryStakeDistributionCmd :: ShelleyBasedEra era -> EnvCli -> Parser (QueryCmds pQueryStakeDistributionCmd era envCli = fmap QueryStakeDistributionCmd $ QueryStakeDistributionCmdArgs - <$> pSocketPath envCli - <*> pConsensusModeParams - <*> pNetworkId envCli - <*> pTarget era + <$> pQueryCommons era envCli <*> (optional $ pOutputFormatJsonOrText "stake-distribution") <*> pMaybeOutputFile @@ -327,31 +315,22 @@ pQueryStakeAddressInfoCmd :: ShelleyBasedEra era -> EnvCli -> Parser (QueryCmds pQueryStakeAddressInfoCmd era envCli = fmap QueryStakeAddressInfoCmd $ QueryStakeAddressInfoCmdArgs - <$> pSocketPath envCli - <*> pConsensusModeParams + <$> pQueryCommons era envCli <*> pFilterByStakeAddress - <*> pNetworkId envCli - <*> pTarget era <*> pMaybeOutputFile pQueryLedgerStateCmd :: ShelleyBasedEra era -> EnvCli -> Parser (QueryCmds era) pQueryLedgerStateCmd era envCli = fmap QueryLedgerStateCmd $ QueryLedgerStateCmdArgs - <$> pSocketPath envCli - <*> pConsensusModeParams - <*> pNetworkId envCli - <*> pTarget era + <$> pQueryCommons era envCli <*> pMaybeOutputFile pQueryProtocolStateCmd :: ShelleyBasedEra era -> EnvCli -> Parser (QueryCmds era) pQueryProtocolStateCmd era envCli = fmap QueryProtocolStateCmd $ QueryProtocolStateCmdArgs - <$> pSocketPath envCli - <*> pConsensusModeParams - <*> pNetworkId envCli - <*> pTarget era + <$> pQueryCommons era envCli <*> pMaybeOutputFile pAllStakePoolsOrSome :: Parser (AllOrOnly (Hash StakePoolKey)) @@ -371,22 +350,16 @@ pQueryStakeSnapshotCmd :: ShelleyBasedEra era -> EnvCli -> Parser (QueryCmds era pQueryStakeSnapshotCmd era envCli = fmap QueryStakeSnapshotCmd $ QueryStakeSnapshotCmdArgs - <$> pSocketPath envCli - <*> pConsensusModeParams - <*> pNetworkId envCli + <$> pQueryCommons era envCli <*> pAllStakePoolsOrSome - <*> pTarget era <*> pMaybeOutputFile pQueryPoolStateCmd :: ShelleyBasedEra era -> EnvCli -> Parser (QueryCmds era) pQueryPoolStateCmd era envCli = fmap QueryPoolStateCmd $ QueryPoolStateCmdArgs - <$> pSocketPath envCli - <*> pConsensusModeParams - <*> pNetworkId envCli + <$> pQueryCommons era envCli <*> pAllStakePoolsOrSome - <*> pTarget era <*> pMaybeOutputFile pQueryTxMempoolCmd :: EnvCli -> Parser (QueryCmds era) @@ -417,14 +390,11 @@ pLeadershipScheduleCmd :: ShelleyBasedEra era -> EnvCli -> Parser (QueryCmds era pLeadershipScheduleCmd era envCli = fmap QueryLeadershipScheduleCmd $ QueryLeadershipScheduleCmdArgs - <$> pSocketPath envCli - <*> pConsensusModeParams - <*> pNetworkId envCli + <$> pQueryCommons era envCli <*> pGenesisFile "Shelley genesis filepath" <*> pStakePoolVerificationKeyOrHashOrFile Nothing <*> pVrfSigningKeyFile <*> pWhichLeadershipSchedule - <*> pTarget era <*> (optional $ pOutputFormatJsonOrText "leadership-schedule") <*> pMaybeOutputFile @@ -432,21 +402,15 @@ pKesPeriodInfoCmd :: ShelleyBasedEra era -> EnvCli -> Parser (QueryCmds era) pKesPeriodInfoCmd era envCli = fmap QueryKesPeriodInfoCmd $ QueryKesPeriodInfoCmdArgs - <$> pSocketPath envCli - <*> pConsensusModeParams - <*> pNetworkId envCli + <$> pQueryCommons era envCli <*> pOperationalCertificateFile - <*> pTarget era <*> pMaybeOutputFile pQuerySlotNumberCmd :: ShelleyBasedEra era -> EnvCli -> Parser (QueryCmds era) pQuerySlotNumberCmd era envCli = fmap QuerySlotNumberCmd $ QuerySlotNumberCmdArgs - <$> pSocketPath envCli - <*> pConsensusModeParams - <*> pNetworkId envCli - <*> pTarget era + <$> pQueryCommons era envCli <*> pUtcTimestamp where pUtcTimestamp = @@ -460,11 +424,8 @@ pQueryRefScriptSizeCmd :: ShelleyBasedEra era -> EnvCli -> Parser (QueryCmds era pQueryRefScriptSizeCmd era envCli = fmap QueryRefScriptSizeCmd $ QueryRefScriptSizeCmdArgs - <$> pSocketPath envCli - <*> pConsensusModeParams + <$> pQueryCommons era envCli <*> (fromList <$> some pByTxIn) - <*> pNetworkId envCli - <*> pTarget era <*> (optional $ pOutputFormatJsonOrText "reference inputs") <*> pMaybeOutputFile where @@ -521,9 +482,7 @@ pQueryDRepStateCmd era envCli = do pQueryDRepStateCmdArgs :: ConwayEraOnwards era -> Parser (QueryDRepStateCmdArgs era) pQueryDRepStateCmdArgs w = QueryDRepStateCmdArgs w - <$> pSocketPath envCli - <*> pConsensusModeParams - <*> pNetworkId envCli + <$> pQueryCommons era envCli <*> pAllOrOnlyDRepHashSource <*> Opt.flag NoStake @@ -539,8 +498,7 @@ pQueryDRepStateCmd era envCli = do ] ] ) - <*> pTarget era - <*> optional pOutputFile + <*> pMaybeOutputFile pQueryDRepStakeDistributionCmd :: () @@ -558,12 +516,9 @@ pQueryDRepStakeDistributionCmd era envCli = do :: ConwayEraOnwards era -> Parser (QueryDRepStakeDistributionCmdArgs era) pQueryDRepStakeDistributionCmdArgs w = QueryDRepStakeDistributionCmdArgs w - <$> pSocketPath envCli - <*> pConsensusModeParams - <*> pNetworkId envCli + <$> pQueryCommons era envCli <*> pAllOrOnlyDRepHashSource - <*> pTarget era - <*> optional pOutputFile + <*> pMaybeOutputFile pQuerySPOStakeDistributionCmd :: () @@ -581,12 +536,9 @@ pQuerySPOStakeDistributionCmd era envCli = do :: ConwayEraOnwards era -> Parser (QuerySPOStakeDistributionCmdArgs era) pQuerySPOStakeDistributionCmdArgs w = QuerySPOStakeDistributionCmdArgs w - <$> pSocketPath envCli - <*> pConsensusModeParams - <*> pNetworkId envCli + <$> pQueryCommons era envCli <*> pAllOrOnlySPOHashSource - <*> pTarget era - <*> optional pOutputFile + <*> pMaybeOutputFile pQueryGetCommitteeStateCmd :: () @@ -604,14 +556,11 @@ pQueryGetCommitteeStateCmd era envCli = do :: ConwayEraOnwards era -> Parser (QueryCommitteeMembersStateCmdArgs era) pQueryCommitteeMembersStateArgs w = QueryCommitteeMembersStateCmdArgs w - <$> pSocketPath envCli - <*> pConsensusModeParams - <*> pNetworkId envCli + <$> pQueryCommons era envCli <*> many pCommitteeColdVerificationKeyOrHashOrFileOrScriptHash <*> many pCommitteeHotKeyOrHashOrFileOrScriptHash <*> many pMemberStatus - <*> pTarget era - <*> optional pOutputFile + <*> pMaybeOutputFile pCommitteeColdVerificationKeyOrHashOrFileOrScriptHash :: Parser (VerificationKeyOrHashOrFileOrScriptHash CommitteeColdKey) @@ -671,11 +620,8 @@ pQueryTreasuryValueCmd era envCli = do :: ConwayEraOnwards era -> Parser (QueryTreasuryValueCmdArgs era) pQueryTreasuryValueArgs w = QueryTreasuryValueCmdArgs w - <$> pSocketPath envCli - <*> pConsensusModeParams - <*> pNetworkId envCli - <*> pTarget era - <*> optional pOutputFile + <$> pQueryCommons era envCli + <*> pMaybeOutputFile pQueryNoArgCmdArgs :: forall era @@ -685,8 +631,18 @@ pQueryNoArgCmdArgs -> Parser (QueryNoArgCmdArgs era) pQueryNoArgCmdArgs w envCli = QueryNoArgCmdArgs w + <$> pQueryCommons (inject w :: ShelleyBasedEra era) envCli + <*> pMaybeOutputFile + +pQueryCommons + :: forall era + . () + => ShelleyBasedEra era + -> EnvCli + -> Parser QueryCommons +pQueryCommons w envCli = + QueryCommons <$> pSocketPath envCli <*> pConsensusModeParams <*> pNetworkId envCli - <*> pTarget (inject w :: ShelleyBasedEra era) - <*> optional pOutputFile + <*> pTarget w diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs b/cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs index 20b593297..8e8c16d47 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs @@ -189,13 +189,17 @@ runQueryTipCmd => Cmd.QueryTipCmdArgs -> ExceptT QueryCmdError IO () runQueryTipCmd - Cmd.QueryTipCmdArgs - { Cmd.nodeSocketPath - , Cmd.consensusModeParams - , Cmd.networkId - , Cmd.target - , Cmd.mOutFile - } = do + ( Cmd.QueryTipCmdArgs + { Cmd.commons = + Cmd.QueryCommons + { Cmd.nodeSocketPath + , Cmd.consensusModeParams + , Cmd.networkId + , Cmd.target + } + , Cmd.mOutFile + } + ) = do let localNodeConnInfo = LocalNodeConnectInfo consensusModeParams networkId nodeSocketPath eLocalState <- ExceptT $ @@ -286,15 +290,19 @@ runQueryUTxOCmd => Cmd.QueryUTxOCmdArgs -> ExceptT QueryCmdError IO () runQueryUTxOCmd - Cmd.QueryUTxOCmdArgs - { Cmd.nodeSocketPath - , Cmd.consensusModeParams - , Cmd.queryFilter - , Cmd.networkId - , Cmd.target - , Cmd.format - , Cmd.mOutFile - } = do + ( Cmd.QueryUTxOCmdArgs + { Cmd.commons = + Cmd.QueryCommons + { Cmd.nodeSocketPath + , Cmd.consensusModeParams + , Cmd.networkId + , Cmd.target + } + , Cmd.queryFilter + , Cmd.format + , Cmd.mOutFile + } + ) = do let localNodeConnInfo = LocalNodeConnectInfo consensusModeParams networkId nodeSocketPath join $ @@ -325,11 +333,14 @@ runQueryKesPeriodInfoCmd -> ExceptT QueryCmdError IO () runQueryKesPeriodInfoCmd Cmd.QueryKesPeriodInfoCmdArgs - { Cmd.nodeSocketPath - , Cmd.consensusModeParams - , Cmd.networkId + { Cmd.commons = + Cmd.QueryCommons + { Cmd.nodeSocketPath + , Cmd.consensusModeParams + , Cmd.networkId + , Cmd.target + } , Cmd.nodeOpCertFp - , Cmd.target , Cmd.mOutFile } = do opCert <- @@ -631,11 +642,14 @@ runQueryPoolStateCmd -> ExceptT QueryCmdError IO () runQueryPoolStateCmd Cmd.QueryPoolStateCmdArgs - { Cmd.nodeSocketPath - , Cmd.consensusModeParams - , Cmd.networkId + { Cmd.commons = + Cmd.QueryCommons + { Cmd.nodeSocketPath + , Cmd.consensusModeParams + , Cmd.networkId + , Cmd.target + } , Cmd.allOrOnlyPoolIds - , Cmd.target , Cmd.mOutFile } = do let localNodeConnInfo = LocalNodeConnectInfo consensusModeParams networkId nodeSocketPath @@ -703,11 +717,14 @@ runQuerySlotNumberCmd -> ExceptT QueryCmdError IO () runQuerySlotNumberCmd Cmd.QuerySlotNumberCmdArgs - { Cmd.nodeSocketPath - , Cmd.consensusModeParams - , Cmd.networkId + { Cmd.commons = + Cmd.QueryCommons + { Cmd.nodeSocketPath + , Cmd.consensusModeParams + , Cmd.networkId + , Cmd.target + } , Cmd.utcTime - , Cmd.target } = do SlotNo slotNo <- utcTimeToSlotNo nodeSocketPath consensusModeParams networkId target utcTime liftIO . putStr $ show slotNo @@ -718,11 +735,14 @@ runQueryRefScriptSizeCmd -> ExceptT QueryCmdError IO () runQueryRefScriptSizeCmd Cmd.QueryRefScriptSizeCmdArgs - { Cmd.nodeSocketPath - , Cmd.consensusModeParams + { Cmd.commons = + Cmd.QueryCommons + { Cmd.nodeSocketPath + , Cmd.consensusModeParams + , Cmd.networkId + , Cmd.target + } , Cmd.transactionInputs - , Cmd.networkId - , Cmd.target , Cmd.format , Cmd.mOutFile } = do @@ -770,11 +790,14 @@ runQueryStakeSnapshotCmd -> ExceptT QueryCmdError IO () runQueryStakeSnapshotCmd Cmd.QueryStakeSnapshotCmdArgs - { Cmd.nodeSocketPath - , Cmd.consensusModeParams - , Cmd.networkId + { Cmd.commons = + Cmd.QueryCommons + { Cmd.nodeSocketPath + , Cmd.consensusModeParams + , Cmd.networkId + , Cmd.target + } , Cmd.allOrOnlyPoolIds - , Cmd.target , Cmd.mOutFile } = do let localNodeConnInfo = LocalNodeConnectInfo consensusModeParams networkId nodeSocketPath @@ -812,13 +835,17 @@ runQueryLedgerStateCmd => Cmd.QueryLedgerStateCmdArgs -> ExceptT QueryCmdError IO () runQueryLedgerStateCmd - Cmd.QueryLedgerStateCmdArgs - { Cmd.nodeSocketPath - , Cmd.consensusModeParams - , Cmd.networkId - , Cmd.target - , Cmd.mOutFile - } = do + ( Cmd.QueryLedgerStateCmdArgs + { Cmd.commons = + Cmd.QueryCommons + { Cmd.nodeSocketPath + , Cmd.consensusModeParams + , Cmd.networkId + , Cmd.target + } + , Cmd.mOutFile + } + ) = do let localNodeConnInfo = LocalNodeConnectInfo consensusModeParams networkId nodeSocketPath join $ @@ -848,13 +875,17 @@ runQueryProtocolStateCmd => Cmd.QueryProtocolStateCmdArgs -> ExceptT QueryCmdError IO () runQueryProtocolStateCmd - Cmd.QueryProtocolStateCmdArgs - { Cmd.nodeSocketPath - , Cmd.consensusModeParams - , Cmd.networkId - , Cmd.target - , Cmd.mOutFile - } = do + ( Cmd.QueryProtocolStateCmdArgs + { Cmd.commons = + Cmd.QueryCommons + { Cmd.nodeSocketPath + , Cmd.consensusModeParams + , Cmd.networkId + , Cmd.target + } + , Cmd.mOutFile + } + ) = do let localNodeConnInfo = LocalNodeConnectInfo consensusModeParams networkId nodeSocketPath join $ @@ -886,11 +917,14 @@ runQueryStakeAddressInfoCmd -> ExceptT QueryCmdError IO () runQueryStakeAddressInfoCmd Cmd.QueryStakeAddressInfoCmdArgs - { Cmd.nodeSocketPath - , Cmd.consensusModeParams + { Cmd.commons = + Cmd.QueryCommons + { Cmd.nodeSocketPath + , Cmd.consensusModeParams + , Cmd.networkId + , Cmd.target + } , Cmd.addr = StakeAddress _ addr - , Cmd.networkId - , Cmd.target , Cmd.mOutFile } = do let localNodeConnInfo = LocalNodeConnectInfo consensusModeParams networkId nodeSocketPath @@ -1230,10 +1264,13 @@ runQueryStakePoolsCmd -> ExceptT QueryCmdError IO () runQueryStakePoolsCmd Cmd.QueryStakePoolsCmdArgs - { Cmd.nodeSocketPath - , Cmd.consensusModeParams - , Cmd.networkId - , Cmd.target + { Cmd.commons = + Cmd.QueryCommons + { Cmd.nodeSocketPath + , Cmd.consensusModeParams + , Cmd.networkId + , Cmd.target + } , Cmd.format , Cmd.mOutFile } = do @@ -1300,11 +1337,14 @@ runQueryStakeDistributionCmd -> ExceptT QueryCmdError IO () runQueryStakeDistributionCmd Cmd.QueryStakeDistributionCmdArgs - { Cmd.nodeSocketPath - , Cmd.consensusModeParams - , Cmd.networkId + { Cmd.commons = + Cmd.QueryCommons + { Cmd.nodeSocketPath + , Cmd.consensusModeParams + , Cmd.networkId + , Cmd.target + } , Cmd.format - , Cmd.target , Cmd.mOutFile } = do let localNodeConnInfo = LocalNodeConnectInfo consensusModeParams networkId nodeSocketPath @@ -1367,14 +1407,17 @@ runQueryLeadershipScheduleCmd -> ExceptT QueryCmdError IO () runQueryLeadershipScheduleCmd Cmd.QueryLeadershipScheduleCmdArgs - { Cmd.nodeSocketPath - , Cmd.consensusModeParams - , Cmd.networkId + { Cmd.commons = + Cmd.QueryCommons + { Cmd.nodeSocketPath + , Cmd.consensusModeParams + , Cmd.networkId + , Cmd.target + } , Cmd.genesisFp = GenesisFile genFile , Cmd.poolColdVerKeyFile , Cmd.vrkSkeyFp , Cmd.whichSchedule - , Cmd.target , Cmd.format , Cmd.mOutFile } = do @@ -1555,10 +1598,13 @@ runQueryConstitution runQueryConstitution Cmd.QueryNoArgCmdArgs { Cmd.eon - , Cmd.nodeSocketPath - , Cmd.consensusModeParams - , Cmd.networkId - , Cmd.target + , Cmd.commons = + Cmd.QueryCommons + { Cmd.nodeSocketPath + , Cmd.consensusModeParams + , Cmd.networkId + , Cmd.target + } , Cmd.mOutFile } = conwayEraOnwardsConstraints eon $ do let localNodeConnInfo = LocalNodeConnectInfo consensusModeParams networkId nodeSocketPath @@ -1571,10 +1617,13 @@ runQueryGovState runQueryGovState Cmd.QueryNoArgCmdArgs { Cmd.eon - , Cmd.nodeSocketPath - , Cmd.consensusModeParams - , Cmd.networkId - , Cmd.target + , Cmd.commons = + Cmd.QueryCommons + { Cmd.nodeSocketPath + , Cmd.consensusModeParams + , Cmd.networkId + , Cmd.target + } , Cmd.mOutFile } = conwayEraOnwardsConstraints eon $ do let localNodeConnInfo = LocalNodeConnectInfo consensusModeParams networkId nodeSocketPath @@ -1587,12 +1636,15 @@ runQueryDRepState runQueryDRepState Cmd.QueryDRepStateCmdArgs { Cmd.eon - , Cmd.nodeSocketPath - , Cmd.consensusModeParams - , Cmd.networkId , Cmd.drepHashSources = drepHashSources' , Cmd.includeStake - , Cmd.target + , Cmd.commons = + Cmd.QueryCommons + { Cmd.nodeSocketPath + , Cmd.consensusModeParams + , Cmd.networkId + , Cmd.target + } , Cmd.mOutFile } = conwayEraOnwardsConstraints eon $ do let localNodeConnInfo = LocalNodeConnectInfo consensusModeParams networkId nodeSocketPath @@ -1634,11 +1686,14 @@ runQueryDRepStakeDistribution runQueryDRepStakeDistribution Cmd.QueryDRepStakeDistributionCmdArgs { Cmd.eon - , Cmd.nodeSocketPath - , Cmd.consensusModeParams - , Cmd.networkId + , Cmd.commons = + Cmd.QueryCommons + { Cmd.nodeSocketPath + , Cmd.consensusModeParams + , Cmd.networkId + , Cmd.target + } , Cmd.drepHashSources = drepHashSources' - , Cmd.target , Cmd.mOutFile } = conwayEraOnwardsConstraints eon $ do let localNodeConnInfo = LocalNodeConnectInfo consensusModeParams networkId nodeSocketPath @@ -1662,11 +1717,14 @@ runQuerySPOStakeDistribution runQuerySPOStakeDistribution Cmd.QuerySPOStakeDistributionCmdArgs { Cmd.eon - , Cmd.nodeSocketPath - , Cmd.consensusModeParams - , Cmd.networkId + , Cmd.commons = + Cmd.QueryCommons + { Cmd.nodeSocketPath + , Cmd.consensusModeParams + , Cmd.networkId + , Cmd.target + } , Cmd.spoHashSources = spoHashSources' - , Cmd.target , Cmd.mOutFile } = conwayEraOnwardsConstraints eon $ do let localNodeConnInfo = LocalNodeConnectInfo consensusModeParams networkId nodeSocketPath @@ -1687,14 +1745,17 @@ runQueryCommitteeMembersState runQueryCommitteeMembersState Cmd.QueryCommitteeMembersStateCmdArgs { Cmd.eon - , Cmd.nodeSocketPath - , Cmd.consensusModeParams - , Cmd.networkId - , Cmd.target - , Cmd.mOutFile + , Cmd.commons = + Cmd.QueryCommons + { Cmd.nodeSocketPath + , Cmd.consensusModeParams + , Cmd.networkId + , Cmd.target + } , Cmd.committeeColdKeys = coldCredKeys , Cmd.committeeHotKeys = hotCredKeys , Cmd.memberStatuses = memberStatuses + , Cmd.mOutFile } = conwayEraOnwardsConstraints eon $ do let localNodeConnInfo = LocalNodeConnectInfo consensusModeParams networkId nodeSocketPath @@ -1719,10 +1780,13 @@ runQueryTreasuryValue runQueryTreasuryValue Cmd.QueryTreasuryValueCmdArgs { Cmd.eon - , Cmd.nodeSocketPath - , Cmd.consensusModeParams - , Cmd.networkId - , Cmd.target + , Cmd.commons = + Cmd.QueryCommons + { Cmd.nodeSocketPath + , Cmd.consensusModeParams + , Cmd.networkId + , Cmd.target + } , Cmd.mOutFile } = conwayEraOnwardsConstraints eon $ do let localNodeConnInfo = LocalNodeConnectInfo consensusModeParams networkId nodeSocketPath From 530f92959b4cc33826f47e07c5ad198f3669f20a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Hurlin?= Date: Fri, 29 Nov 2024 18:22:48 +0100 Subject: [PATCH 2/2] Adapt golden files --- .../cardano-cli-golden/files/golden/help.cli | 142 +++++++++--------- .../help/allegra_query_ref-script-size.cli | 4 +- .../help/allegra_query_stake-address-info.cli | 4 +- .../files/golden/help/allegra_query_utxo.cli | 10 +- .../help/alonzo_query_ref-script-size.cli | 4 +- .../help/alonzo_query_stake-address-info.cli | 4 +- .../files/golden/help/alonzo_query_utxo.cli | 10 +- .../help/babbage_query_ref-script-size.cli | 4 +- .../help/babbage_query_stake-address-info.cli | 4 +- .../files/golden/help/babbage_query_utxo.cli | 10 +- .../help/conway_query_committee-state.cli | 14 +- .../golden/help/conway_query_constitution.cli | 2 +- .../conway_query_drep-stake-distribution.cli | 14 +- .../golden/help/conway_query_drep-state.cli | 10 +- .../golden/help/conway_query_gov-state.cli | 2 +- .../help/conway_query_kes-period-info.cli | 4 +- .../help/conway_query_leadership-schedule.cli | 12 +- .../golden/help/conway_query_pool-params.cli | 8 +- .../golden/help/conway_query_pool-state.cli | 8 +- .../help/conway_query_ref-script-size.cli | 4 +- .../conway_query_spo-stake-distribution.cli | 14 +- .../help/conway_query_stake-address-info.cli | 4 +- .../help/conway_query_stake-snapshot.cli | 12 +- .../golden/help/conway_query_treasury.cli | 2 +- .../files/golden/help/conway_query_utxo.cli | 12 +- .../help/latest_query_committee-state.cli | 14 +- .../golden/help/latest_query_constitution.cli | 2 +- .../latest_query_drep-stake-distribution.cli | 14 +- .../golden/help/latest_query_drep-state.cli | 10 +- .../golden/help/latest_query_gov-state.cli | 2 +- .../help/latest_query_kes-period-info.cli | 4 +- .../help/latest_query_leadership-schedule.cli | 12 +- .../golden/help/latest_query_pool-params.cli | 8 +- .../golden/help/latest_query_pool-state.cli | 8 +- .../help/latest_query_ref-script-size.cli | 4 +- .../latest_query_spo-stake-distribution.cli | 14 +- .../help/latest_query_stake-address-info.cli | 4 +- .../help/latest_query_stake-snapshot.cli | 12 +- .../golden/help/latest_query_treasury.cli | 2 +- .../files/golden/help/latest_query_utxo.cli | 12 +- .../help/mary_query_ref-script-size.cli | 4 +- .../help/mary_query_stake-address-info.cli | 4 +- .../files/golden/help/mary_query_utxo.cli | 10 +- .../golden/help/query_kes-period-info.cli | 4 +- .../golden/help/query_leadership-schedule.cli | 12 +- .../files/golden/help/query_pool-params.cli | 8 +- .../files/golden/help/query_pool-state.cli | 8 +- .../golden/help/query_stake-address-info.cli | 4 +- .../golden/help/query_stake-snapshot.cli | 8 +- .../files/golden/help/query_utxo.cli | 12 +- .../help/shelley_query_ref-script-size.cli | 4 +- .../help/shelley_query_stake-address-info.cli | 4 +- .../files/golden/help/shelley_query_utxo.cli | 10 +- 53 files changed, 266 insertions(+), 266 deletions(-) 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 14e47f655..0c477abe6 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help.cli @@ -265,23 +265,23 @@ Usage: cardano-cli query stake-distribution --socket-path SOCKET_PATH Usage: cardano-cli query stake-address-info --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - --address ADDRESS ( --mainnet | --testnet-magic NATURAL ) [--volatile-tip | --immutable-tip] + --address ADDRESS [--out-file FILEPATH] Get the current delegations and reward accounts filtered by stake address. Usage: cardano-cli query utxo --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] + (--mainnet | --testnet-magic NATURAL) + [--volatile-tip | --immutable-tip] ( --whole-utxo | (--address ADDRESS) | (--tx-in TX-IN) ) - (--mainnet | --testnet-magic NATURAL) - [--volatile-tip | --immutable-tip] [--output-json | --output-text] [--out-file FILEPATH] @@ -308,10 +308,10 @@ Usage: cardano-cli query protocol-state --socket-path SOCKET_PATH Usage: cardano-cli query stake-snapshot --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] (--mainnet | --testnet-magic NATURAL) + [--volatile-tip | --immutable-tip] ( --all-stake-pools | (--stake-pool-id STAKE_POOL_ID) ) - [--volatile-tip | --immutable-tip] [--out-file FILEPATH] Obtain the three stake snapshots for a pool, plus the total active stake @@ -320,10 +320,10 @@ 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) + [--volatile-tip | --immutable-tip] ( --all-stake-pools | (--stake-pool-id STAKE_POOL_ID) ) - [--volatile-tip | --immutable-tip] [--out-file FILEPATH] DEPRECATED. Use query pool-state instead. Dump the pool parameters @@ -336,6 +336,9 @@ Usage: cardano-cli query leadership-schedule --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [ --volatile-tip + | --immutable-tip + ] --genesis FILEPATH ( --stake-pool-verification-key STRING | --cold-verification-key-file FILEPATH @@ -343,9 +346,6 @@ Usage: cardano-cli query leadership-schedule --socket-path SOCKET_PATH ) --vrf-signing-key-file FILEPATH (--current | --next) - [ --volatile-tip - | --immutable-tip - ] [--output-json | --output-text] [--out-file FILEPATH] @@ -355,8 +355,8 @@ Usage: cardano-cli query kes-period-info --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] (--mainnet | --testnet-magic NATURAL) - --op-cert-file FILEPATH [--volatile-tip | --immutable-tip] + --op-cert-file FILEPATH [--out-file FILEPATH] Get information about the current KES period and your node's operational @@ -365,10 +365,10 @@ 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) + [--volatile-tip | --immutable-tip] ( --all-stake-pools | (--stake-pool-id STAKE_POOL_ID) ) - [--volatile-tip | --immutable-tip] [--out-file FILEPATH] Dump the pool state @@ -1437,21 +1437,21 @@ Usage: cardano-cli shelley query stake-distribution --socket-path SOCKET_PATH Usage: cardano-cli shelley query stake-address-info --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - --address ADDRESS ( --mainnet | --testnet-magic NATURAL ) + --address ADDRESS [--out-file FILEPATH] Get the current delegations and reward accounts filtered by stake address. Usage: cardano-cli shelley query utxo --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] + (--mainnet | --testnet-magic NATURAL) ( --whole-utxo | (--address ADDRESS) | (--tx-in TX-IN) ) - (--mainnet | --testnet-magic NATURAL) [--output-json | --output-text] [--out-file FILEPATH] @@ -1589,10 +1589,10 @@ Usage: cardano-cli shelley query slot-number --socket-path SOCKET_PATH Usage: cardano-cli shelley query ref-script-size --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - (--tx-in TX-IN) ( --mainnet | --testnet-magic NATURAL ) + (--tx-in TX-IN) [ --output-json | --output-text ] @@ -2510,21 +2510,21 @@ Usage: cardano-cli allegra query stake-distribution --socket-path SOCKET_PATH Usage: cardano-cli allegra query stake-address-info --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - --address ADDRESS ( --mainnet | --testnet-magic NATURAL ) + --address ADDRESS [--out-file FILEPATH] Get the current delegations and reward accounts filtered by stake address. Usage: cardano-cli allegra query utxo --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] + (--mainnet | --testnet-magic NATURAL) ( --whole-utxo | (--address ADDRESS) | (--tx-in TX-IN) ) - (--mainnet | --testnet-magic NATURAL) [--output-json | --output-text] [--out-file FILEPATH] @@ -2662,10 +2662,10 @@ Usage: cardano-cli allegra query slot-number --socket-path SOCKET_PATH Usage: cardano-cli allegra query ref-script-size --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - (--tx-in TX-IN) ( --mainnet | --testnet-magic NATURAL ) + (--tx-in TX-IN) [ --output-json | --output-text ] @@ -3581,21 +3581,21 @@ Usage: cardano-cli mary query stake-distribution --socket-path SOCKET_PATH Usage: cardano-cli mary query stake-address-info --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - --address ADDRESS ( --mainnet | --testnet-magic NATURAL ) + --address ADDRESS [--out-file FILEPATH] Get the current delegations and reward accounts filtered by stake address. Usage: cardano-cli mary query utxo --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] + (--mainnet | --testnet-magic NATURAL) ( --whole-utxo | (--address ADDRESS) | (--tx-in TX-IN) ) - (--mainnet | --testnet-magic NATURAL) [--output-json | --output-text] [--out-file FILEPATH] @@ -3729,10 +3729,10 @@ Usage: cardano-cli mary query slot-number --socket-path SOCKET_PATH Usage: cardano-cli mary query ref-script-size --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - (--tx-in TX-IN) ( --mainnet | --testnet-magic NATURAL ) + (--tx-in TX-IN) [--output-json | --output-text] [--out-file FILEPATH] @@ -4651,21 +4651,21 @@ Usage: cardano-cli alonzo query stake-distribution --socket-path SOCKET_PATH Usage: cardano-cli alonzo query stake-address-info --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - --address ADDRESS ( --mainnet | --testnet-magic NATURAL ) + --address ADDRESS [--out-file FILEPATH] Get the current delegations and reward accounts filtered by stake address. Usage: cardano-cli alonzo query utxo --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] + (--mainnet | --testnet-magic NATURAL) ( --whole-utxo | (--address ADDRESS) | (--tx-in TX-IN) ) - (--mainnet | --testnet-magic NATURAL) [--output-json | --output-text] [--out-file FILEPATH] @@ -4803,10 +4803,10 @@ Usage: cardano-cli alonzo query slot-number --socket-path SOCKET_PATH Usage: cardano-cli alonzo query ref-script-size --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - (--tx-in TX-IN) ( --mainnet | --testnet-magic NATURAL ) + (--tx-in TX-IN) [ --output-json | --output-text ] @@ -5750,21 +5750,21 @@ Usage: cardano-cli babbage query stake-distribution --socket-path SOCKET_PATH Usage: cardano-cli babbage query stake-address-info --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - --address ADDRESS ( --mainnet | --testnet-magic NATURAL ) + --address ADDRESS [--out-file FILEPATH] Get the current delegations and reward accounts filtered by stake address. Usage: cardano-cli babbage query utxo --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] + (--mainnet | --testnet-magic NATURAL) ( --whole-utxo | (--address ADDRESS) | (--tx-in TX-IN) ) - (--mainnet | --testnet-magic NATURAL) [--output-json | --output-text] [--out-file FILEPATH] @@ -5902,10 +5902,10 @@ Usage: cardano-cli babbage query slot-number --socket-path SOCKET_PATH Usage: cardano-cli babbage query ref-script-size --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - (--tx-in TX-IN) ( --mainnet | --testnet-magic NATURAL ) + (--tx-in TX-IN) [ --output-json | --output-text ] @@ -7397,25 +7397,25 @@ Usage: cardano-cli conway query stake-distribution --socket-path SOCKET_PATH Usage: cardano-cli conway query stake-address-info --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - --address ADDRESS ( --mainnet | --testnet-magic NATURAL ) [ --volatile-tip | --immutable-tip ] + --address ADDRESS [--out-file FILEPATH] Get the current delegations and reward accounts filtered by stake address. Usage: cardano-cli conway query utxo --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] + (--mainnet | --testnet-magic NATURAL) + [--volatile-tip | --immutable-tip] ( --whole-utxo | (--address ADDRESS) | (--tx-in TX-IN) ) - (--mainnet | --testnet-magic NATURAL) - [--volatile-tip | --immutable-tip] [--output-json | --output-text] [--out-file FILEPATH] @@ -7455,12 +7455,12 @@ Usage: cardano-cli conway query stake-snapshot --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - ( --all-stake-pools - | (--stake-pool-id STAKE_POOL_ID) - ) [ --volatile-tip | --immutable-tip ] + ( --all-stake-pools + | (--stake-pool-id STAKE_POOL_ID) + ) [--out-file FILEPATH] Obtain the three stake snapshots for a pool, plus the total active stake @@ -7472,10 +7472,10 @@ Usage: cardano-cli conway query pool-params --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [--volatile-tip | --immutable-tip] ( --all-stake-pools | (--stake-pool-id STAKE_POOL_ID) ) - [--volatile-tip | --immutable-tip] [--out-file FILEPATH] DEPRECATED. Use query pool-state instead. Dump the pool parameters @@ -7488,6 +7488,9 @@ Usage: cardano-cli conway query leadership-schedule --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [ --volatile-tip + | --immutable-tip + ] --genesis FILEPATH ( --stake-pool-verification-key STRING | --cold-verification-key-file FILEPATH @@ -7495,9 +7498,6 @@ Usage: cardano-cli conway query leadership-schedule --socket-path SOCKET_PATH ) --vrf-signing-key-file FILEPATH (--current | --next) - [ --volatile-tip - | --immutable-tip - ] [ --output-json | --output-text ] @@ -7511,10 +7511,10 @@ Usage: cardano-cli conway query kes-period-info --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - --op-cert-file FILEPATH [ --volatile-tip | --immutable-tip ] + --op-cert-file FILEPATH [--out-file FILEPATH] Get information about the current KES period and your node's operational @@ -7526,10 +7526,10 @@ Usage: cardano-cli conway query pool-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [--volatile-tip | --immutable-tip] ( --all-stake-pools | (--stake-pool-id STAKE_POOL_ID) ) - [--volatile-tip | --immutable-tip] [--out-file FILEPATH] Dump the pool state @@ -7571,13 +7571,13 @@ Usage: cardano-cli conway query slot-number --socket-path SOCKET_PATH Usage: cardano-cli conway query ref-script-size --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - (--tx-in TX-IN) ( --mainnet | --testnet-magic NATURAL ) [ --volatile-tip | --immutable-tip ] + (--tx-in TX-IN) [ --output-json | --output-text ] @@ -7616,6 +7616,7 @@ Usage: cardano-cli conway query drep-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [--volatile-tip | --immutable-tip] ( --all-dreps | ( --drep-script-hash HASH @@ -7625,7 +7626,6 @@ Usage: cardano-cli conway query drep-state --socket-path SOCKET_PATH ) ) [--include-stake] - [--volatile-tip | --immutable-tip] [--out-file FILEPATH] Get the DRep state. @@ -7637,6 +7637,9 @@ Usage: cardano-cli conway query drep-stake-distribution ( --mainnet | --testnet-magic NATURAL ) + [ --volatile-tip + | --immutable-tip + ] ( --all-dreps | ( --drep-script-hash HASH @@ -7645,9 +7648,6 @@ Usage: cardano-cli conway query drep-stake-distribution | --drep-key-hash HASH ) ) - [ --volatile-tip - | --immutable-tip - ] [--out-file FILEPATH] Get the DRep stake distribution. @@ -7658,6 +7658,9 @@ Usage: cardano-cli conway query spo-stake-distribution --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [ --volatile-tip + | --immutable-tip + ] ( --all-spos | ( --spo-verification-key STRING @@ -7665,9 +7668,6 @@ Usage: cardano-cli conway query spo-stake-distribution --socket-path SOCKET_PATH | --spo-key-hash HASH ) ) - [ --volatile-tip - | --immutable-tip - ] [--out-file FILEPATH] Get the SPO stake distribution. @@ -7678,6 +7678,9 @@ Usage: cardano-cli conway query committee-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [ --volatile-tip + | --immutable-tip + ] [ --cold-verification-key STRING | --cold-verification-key-file FILEPATH | --cold-verification-key-hash STRING @@ -7692,9 +7695,6 @@ Usage: cardano-cli conway query committee-state --socket-path SOCKET_PATH | --expired | --unrecognized ] - [ --volatile-tip - | --immutable-tip - ] [--out-file FILEPATH] Get the committee state @@ -9397,25 +9397,25 @@ Usage: cardano-cli latest query stake-distribution --socket-path SOCKET_PATH Usage: cardano-cli latest query stake-address-info --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - --address ADDRESS ( --mainnet | --testnet-magic NATURAL ) [ --volatile-tip | --immutable-tip ] + --address ADDRESS [--out-file FILEPATH] Get the current delegations and reward accounts filtered by stake address. Usage: cardano-cli latest query utxo --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] + (--mainnet | --testnet-magic NATURAL) + [--volatile-tip | --immutable-tip] ( --whole-utxo | (--address ADDRESS) | (--tx-in TX-IN) ) - (--mainnet | --testnet-magic NATURAL) - [--volatile-tip | --immutable-tip] [--output-json | --output-text] [--out-file FILEPATH] @@ -9455,12 +9455,12 @@ Usage: cardano-cli latest query stake-snapshot --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - ( --all-stake-pools - | (--stake-pool-id STAKE_POOL_ID) - ) [ --volatile-tip | --immutable-tip ] + ( --all-stake-pools + | (--stake-pool-id STAKE_POOL_ID) + ) [--out-file FILEPATH] Obtain the three stake snapshots for a pool, plus the total active stake @@ -9472,10 +9472,10 @@ Usage: cardano-cli latest query pool-params --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [--volatile-tip | --immutable-tip] ( --all-stake-pools | (--stake-pool-id STAKE_POOL_ID) ) - [--volatile-tip | --immutable-tip] [--out-file FILEPATH] DEPRECATED. Use query pool-state instead. Dump the pool parameters @@ -9488,6 +9488,9 @@ Usage: cardano-cli latest query leadership-schedule --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [ --volatile-tip + | --immutable-tip + ] --genesis FILEPATH ( --stake-pool-verification-key STRING | --cold-verification-key-file FILEPATH @@ -9495,9 +9498,6 @@ Usage: cardano-cli latest query leadership-schedule --socket-path SOCKET_PATH ) --vrf-signing-key-file FILEPATH (--current | --next) - [ --volatile-tip - | --immutable-tip - ] [ --output-json | --output-text ] @@ -9511,10 +9511,10 @@ Usage: cardano-cli latest query kes-period-info --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - --op-cert-file FILEPATH [ --volatile-tip | --immutable-tip ] + --op-cert-file FILEPATH [--out-file FILEPATH] Get information about the current KES period and your node's operational @@ -9526,10 +9526,10 @@ Usage: cardano-cli latest query pool-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [--volatile-tip | --immutable-tip] ( --all-stake-pools | (--stake-pool-id STAKE_POOL_ID) ) - [--volatile-tip | --immutable-tip] [--out-file FILEPATH] Dump the pool state @@ -9571,13 +9571,13 @@ Usage: cardano-cli latest query slot-number --socket-path SOCKET_PATH Usage: cardano-cli latest query ref-script-size --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - (--tx-in TX-IN) ( --mainnet | --testnet-magic NATURAL ) [ --volatile-tip | --immutable-tip ] + (--tx-in TX-IN) [ --output-json | --output-text ] @@ -9616,6 +9616,7 @@ Usage: cardano-cli latest query drep-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [--volatile-tip | --immutable-tip] ( --all-dreps | ( --drep-script-hash HASH @@ -9625,7 +9626,6 @@ Usage: cardano-cli latest query drep-state --socket-path SOCKET_PATH ) ) [--include-stake] - [--volatile-tip | --immutable-tip] [--out-file FILEPATH] Get the DRep state. @@ -9637,6 +9637,9 @@ Usage: cardano-cli latest query drep-stake-distribution ( --mainnet | --testnet-magic NATURAL ) + [ --volatile-tip + | --immutable-tip + ] ( --all-dreps | ( --drep-script-hash HASH @@ -9645,9 +9648,6 @@ Usage: cardano-cli latest query drep-stake-distribution | --drep-key-hash HASH ) ) - [ --volatile-tip - | --immutable-tip - ] [--out-file FILEPATH] Get the DRep stake distribution. @@ -9658,6 +9658,9 @@ Usage: cardano-cli latest query spo-stake-distribution --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [ --volatile-tip + | --immutable-tip + ] ( --all-spos | ( --spo-verification-key STRING @@ -9665,9 +9668,6 @@ Usage: cardano-cli latest query spo-stake-distribution --socket-path SOCKET_PATH | --spo-key-hash HASH ) ) - [ --volatile-tip - | --immutable-tip - ] [--out-file FILEPATH] Get the SPO stake distribution. @@ -9678,6 +9678,9 @@ Usage: cardano-cli latest query committee-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [ --volatile-tip + | --immutable-tip + ] [ --cold-verification-key STRING | --cold-verification-key-file FILEPATH | --cold-verification-key-hash STRING @@ -9692,9 +9695,6 @@ Usage: cardano-cli latest query committee-state --socket-path SOCKET_PATH | --expired | --unrecognized ] - [ --volatile-tip - | --immutable-tip - ] [--out-file FILEPATH] Get the committee state diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query_ref-script-size.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query_ref-script-size.cli index 15ec4cd1a..cb205054c 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query_ref-script-size.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query_ref-script-size.cli @@ -1,10 +1,10 @@ Usage: cardano-cli allegra query ref-script-size --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - (--tx-in TX-IN) ( --mainnet | --testnet-magic NATURAL ) + (--tx-in TX-IN) [ --output-json | --output-text ] @@ -23,11 +23,11 @@ Available options: (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era. (default: 21600) - --tx-in TX-IN Transaction input (TxId#TxIx). --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 + --tx-in TX-IN Transaction input (TxId#TxIx). --output-json Format reference inputs query output to JSON. Default format when writing to a file --output-text Format reference inputs query output to TEXT. Default diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query_stake-address-info.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query_stake-address-info.cli index 90287086d..9c99abe3a 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query_stake-address-info.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query_stake-address-info.cli @@ -1,10 +1,10 @@ Usage: cardano-cli allegra query stake-address-info --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - --address ADDRESS ( --mainnet | --testnet-magic NATURAL ) + --address ADDRESS [--out-file FILEPATH] Get the current delegations and reward accounts filtered by stake address. @@ -19,10 +19,10 @@ Available options: (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era. (default: 21600) - --address ADDRESS Filter by Cardano stake address (Bech32-encoded). --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 + --address ADDRESS Filter by Cardano stake address (Bech32-encoded). --out-file FILEPATH 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_query_utxo.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query_utxo.cli index 366455a2c..6bd3e8dd1 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query_utxo.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query_utxo.cli @@ -1,10 +1,10 @@ Usage: cardano-cli allegra query utxo --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] + (--mainnet | --testnet-magic NATURAL) ( --whole-utxo | (--address ADDRESS) | (--tx-in TX-IN) ) - (--mainnet | --testnet-magic NATURAL) [--output-json | --output-text] [--out-file FILEPATH] @@ -20,14 +20,14 @@ Available options: (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era. (default: 21600) - --whole-utxo Return the whole UTxO (only appropriate on small - testnets). - --address ADDRESS Filter by Cardano address(es) (Bech32-encoded). - --tx-in TX-IN Filter by transaction input (TxId#TxIx). --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 + --whole-utxo Return the whole UTxO (only appropriate on small + testnets). + --address ADDRESS Filter by Cardano address(es) (Bech32-encoded). + --tx-in TX-IN Filter by transaction input (TxId#TxIx). --output-json Format utxo query output to JSON. Default format when writing to a file --output-text Format utxo query output to TEXT. Default format when diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query_ref-script-size.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query_ref-script-size.cli index f027bc8ae..fce8097ea 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query_ref-script-size.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query_ref-script-size.cli @@ -1,10 +1,10 @@ Usage: cardano-cli alonzo query ref-script-size --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - (--tx-in TX-IN) ( --mainnet | --testnet-magic NATURAL ) + (--tx-in TX-IN) [ --output-json | --output-text ] @@ -23,11 +23,11 @@ Available options: (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era. (default: 21600) - --tx-in TX-IN Transaction input (TxId#TxIx). --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 + --tx-in TX-IN Transaction input (TxId#TxIx). --output-json Format reference inputs query output to JSON. Default format when writing to a file --output-text Format reference inputs query output to TEXT. Default diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query_stake-address-info.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query_stake-address-info.cli index 3ff95204e..21a920f50 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query_stake-address-info.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query_stake-address-info.cli @@ -1,10 +1,10 @@ Usage: cardano-cli alonzo query stake-address-info --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - --address ADDRESS ( --mainnet | --testnet-magic NATURAL ) + --address ADDRESS [--out-file FILEPATH] Get the current delegations and reward accounts filtered by stake address. @@ -19,10 +19,10 @@ Available options: (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era. (default: 21600) - --address ADDRESS Filter by Cardano stake address (Bech32-encoded). --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 + --address ADDRESS Filter by Cardano stake address (Bech32-encoded). --out-file FILEPATH 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_query_utxo.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query_utxo.cli index c8e07d5b2..e2f384fb5 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query_utxo.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query_utxo.cli @@ -1,10 +1,10 @@ Usage: cardano-cli alonzo query utxo --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] + (--mainnet | --testnet-magic NATURAL) ( --whole-utxo | (--address ADDRESS) | (--tx-in TX-IN) ) - (--mainnet | --testnet-magic NATURAL) [--output-json | --output-text] [--out-file FILEPATH] @@ -20,14 +20,14 @@ Available options: (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era. (default: 21600) - --whole-utxo Return the whole UTxO (only appropriate on small - testnets). - --address ADDRESS Filter by Cardano address(es) (Bech32-encoded). - --tx-in TX-IN Filter by transaction input (TxId#TxIx). --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 + --whole-utxo Return the whole UTxO (only appropriate on small + testnets). + --address ADDRESS Filter by Cardano address(es) (Bech32-encoded). + --tx-in TX-IN Filter by transaction input (TxId#TxIx). --output-json Format utxo query output to JSON. Default format when writing to a file --output-text Format utxo query output to TEXT. Default format when diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query_ref-script-size.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query_ref-script-size.cli index 0abbc30b2..be5e84e1d 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query_ref-script-size.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query_ref-script-size.cli @@ -1,10 +1,10 @@ Usage: cardano-cli babbage query ref-script-size --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - (--tx-in TX-IN) ( --mainnet | --testnet-magic NATURAL ) + (--tx-in TX-IN) [ --output-json | --output-text ] @@ -23,11 +23,11 @@ Available options: (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era. (default: 21600) - --tx-in TX-IN Transaction input (TxId#TxIx). --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 + --tx-in TX-IN Transaction input (TxId#TxIx). --output-json Format reference inputs query output to JSON. Default format when writing to a file --output-text Format reference inputs query output to TEXT. Default diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query_stake-address-info.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query_stake-address-info.cli index ebe5fe632..b2c714e94 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query_stake-address-info.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query_stake-address-info.cli @@ -1,10 +1,10 @@ Usage: cardano-cli babbage query stake-address-info --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - --address ADDRESS ( --mainnet | --testnet-magic NATURAL ) + --address ADDRESS [--out-file FILEPATH] Get the current delegations and reward accounts filtered by stake address. @@ -19,10 +19,10 @@ Available options: (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era. (default: 21600) - --address ADDRESS Filter by Cardano stake address (Bech32-encoded). --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 + --address ADDRESS Filter by Cardano stake address (Bech32-encoded). --out-file FILEPATH 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_query_utxo.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query_utxo.cli index ef65ab338..c828eaf70 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query_utxo.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query_utxo.cli @@ -1,10 +1,10 @@ Usage: cardano-cli babbage query utxo --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] + (--mainnet | --testnet-magic NATURAL) ( --whole-utxo | (--address ADDRESS) | (--tx-in TX-IN) ) - (--mainnet | --testnet-magic NATURAL) [--output-json | --output-text] [--out-file FILEPATH] @@ -20,14 +20,14 @@ Available options: (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era. (default: 21600) - --whole-utxo Return the whole UTxO (only appropriate on small - testnets). - --address ADDRESS Filter by Cardano address(es) (Bech32-encoded). - --tx-in TX-IN Filter by transaction input (TxId#TxIx). --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 + --whole-utxo Return the whole UTxO (only appropriate on small + testnets). + --address ADDRESS Filter by Cardano address(es) (Bech32-encoded). + --tx-in TX-IN Filter by transaction input (TxId#TxIx). --output-json Format utxo query output to JSON. Default format when writing to a file --output-text Format utxo query output to TEXT. Default format when diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_committee-state.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_committee-state.cli index 473e58bda..bcd8fceeb 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_committee-state.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_committee-state.cli @@ -4,6 +4,9 @@ Usage: cardano-cli conway query committee-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [ --volatile-tip + | --immutable-tip + ] [ --cold-verification-key STRING | --cold-verification-key-file FILEPATH | --cold-verification-key-hash STRING @@ -18,9 +21,6 @@ Usage: cardano-cli conway query committee-state --socket-path SOCKET_PATH | --expired | --unrecognized ] - [ --volatile-tip - | --immutable-tip - ] [--out-file FILEPATH] Get the committee state @@ -39,6 +39,9 @@ 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 + --volatile-tip Use the volatile tip as a target. (This is the + default) + --immutable-tip Use the immutable tip as a target. --cold-verification-key STRING Constitutional Committee cold key (hex-encoded). --cold-verification-key-file FILEPATH @@ -57,8 +60,5 @@ Available options: --expired Expired committee members --unrecognized Unrecognized committe members: a hot credential for an unknown cold credential - --volatile-tip Use the volatile tip as a target. (This is the - default) - --immutable-tip Use the immutable tip as a target. - --out-file FILEPATH The output file. + --out-file FILEPATH 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_query_constitution.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_constitution.cli index c2f05bd41..ebf9682e4 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_constitution.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_constitution.cli @@ -28,5 +28,5 @@ Available options: --volatile-tip Use the volatile tip as a target. (This is the default) --immutable-tip Use the immutable tip as a target. - --out-file FILEPATH The output file. + --out-file FILEPATH 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_query_drep-stake-distribution.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_drep-stake-distribution.cli index 1599381fe..190bc0343 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_drep-stake-distribution.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_drep-stake-distribution.cli @@ -5,6 +5,9 @@ Usage: cardano-cli conway query drep-stake-distribution ( --mainnet | --testnet-magic NATURAL ) + [ --volatile-tip + | --immutable-tip + ] ( --all-dreps | ( --drep-script-hash HASH @@ -13,9 +16,6 @@ Usage: cardano-cli conway query drep-stake-distribution | --drep-key-hash HASH ) ) - [ --volatile-tip - | --immutable-tip - ] [--out-file FILEPATH] Get the DRep stake distribution. @@ -34,6 +34,9 @@ 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 + --volatile-tip Use the volatile tip as a target. (This is the + default) + --immutable-tip Use the immutable tip as a target. --all-dreps Query for all DReps. --drep-script-hash HASH DRep script hash (hex-encoded). Obtain it with "cardano-cli hash script ...". @@ -43,8 +46,5 @@ Available options: Filepath of the DRep verification key. --drep-key-hash HASH DRep verification key hash (either Bech32-encoded or hex-encoded). - --volatile-tip Use the volatile tip as a target. (This is the - default) - --immutable-tip Use the immutable tip as a target. - --out-file FILEPATH The output file. + --out-file FILEPATH 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_query_drep-state.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_drep-state.cli index 5b924db3c..cbf24ac0b 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_drep-state.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_drep-state.cli @@ -4,6 +4,7 @@ Usage: cardano-cli conway query drep-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [--volatile-tip | --immutable-tip] ( --all-dreps | ( --drep-script-hash HASH @@ -13,7 +14,6 @@ Usage: cardano-cli conway query drep-state --socket-path SOCKET_PATH ) ) [--include-stake] - [--volatile-tip | --immutable-tip] [--out-file FILEPATH] Get the DRep state. @@ -32,6 +32,9 @@ 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 + --volatile-tip Use the volatile tip as a target. (This is the + default) + --immutable-tip Use the immutable tip as a target. --all-dreps Query for all DReps. --drep-script-hash HASH DRep script hash (hex-encoded). Obtain it with "cardano-cli hash script ...". @@ -46,8 +49,5 @@ Available options: this is a convenience option to obtain all information concerning a DRep at once. This is a potentially expensive query, so it's OFF by default. - --volatile-tip Use the volatile tip as a target. (This is the - default) - --immutable-tip Use the immutable tip as a target. - --out-file FILEPATH The output file. + --out-file FILEPATH 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_query_gov-state.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_gov-state.cli index 3bd178b53..9510032a4 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_gov-state.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_gov-state.cli @@ -26,5 +26,5 @@ Available options: --volatile-tip Use the volatile tip as a target. (This is the default) --immutable-tip Use the immutable tip as a target. - --out-file FILEPATH The output file. + --out-file FILEPATH 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_query_kes-period-info.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_kes-period-info.cli index 5f071ba0b..7a6c50170 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_kes-period-info.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_kes-period-info.cli @@ -4,10 +4,10 @@ Usage: cardano-cli conway query kes-period-info --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - --op-cert-file FILEPATH [ --volatile-tip | --immutable-tip ] + --op-cert-file FILEPATH [--out-file FILEPATH] Get information about the current KES period and your node's operational @@ -27,9 +27,9 @@ 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 - --op-cert-file FILEPATH Filepath of the node's operational certificate. --volatile-tip Use the volatile tip as a target. (This is the default) --immutable-tip Use the immutable tip as a target. + --op-cert-file FILEPATH Filepath of the node's operational certificate. --out-file FILEPATH 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_query_leadership-schedule.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_leadership-schedule.cli index b9bdea54a..84f38c4d8 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_leadership-schedule.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_leadership-schedule.cli @@ -4,6 +4,9 @@ Usage: cardano-cli conway query leadership-schedule --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [ --volatile-tip + | --immutable-tip + ] --genesis FILEPATH ( --stake-pool-verification-key STRING | --cold-verification-key-file FILEPATH @@ -11,9 +14,6 @@ Usage: cardano-cli conway query leadership-schedule --socket-path SOCKET_PATH ) --vrf-signing-key-file FILEPATH (--current | --next) - [ --volatile-tip - | --immutable-tip - ] [ --output-json | --output-text ] @@ -35,6 +35,9 @@ 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 + --volatile-tip Use the volatile tip as a target. (This is the + default) + --immutable-tip Use the immutable tip as a target. --genesis FILEPATH Shelley genesis filepath --stake-pool-verification-key STRING Stake pool verification key (Bech32 or hex-encoded). @@ -47,9 +50,6 @@ Available options: Input filepath of the VRF signing key. --current Get the leadership schedule for the current epoch. --next Get the leadership schedule for the following epoch. - --volatile-tip Use the volatile tip as a target. (This is the - default) - --immutable-tip Use the immutable tip as a target. --output-json Format leadership-schedule query output to JSON. Default format when writing to a file --output-text Format leadership-schedule query output to TEXT. 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 c197ac407..2010055bb 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,10 +4,10 @@ Usage: cardano-cli conway query pool-params --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [--volatile-tip | --immutable-tip] ( --all-stake-pools | (--stake-pool-id STAKE_POOL_ID) ) - [--volatile-tip | --immutable-tip] [--out-file FILEPATH] DEPRECATED. Use query pool-state instead. Dump the pool parameters @@ -28,12 +28,12 @@ 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 + --volatile-tip Use the volatile tip as a target. (This is the + default) + --immutable-tip Use the immutable tip as a target. --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). - --volatile-tip Use the volatile tip as a target. (This is the - default) - --immutable-tip Use the immutable tip as a target. --out-file FILEPATH 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_query_pool-state.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_pool-state.cli index 1fe8d263c..074b87a97 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,10 +4,10 @@ Usage: cardano-cli conway query pool-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [--volatile-tip | --immutable-tip] ( --all-stake-pools | (--stake-pool-id STAKE_POOL_ID) ) - [--volatile-tip | --immutable-tip] [--out-file FILEPATH] Dump the pool state @@ -26,12 +26,12 @@ 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 + --volatile-tip Use the volatile tip as a target. (This is the + default) + --immutable-tip Use the immutable tip as a target. --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). - --volatile-tip Use the volatile tip as a target. (This is the - default) - --immutable-tip Use the immutable tip as a target. --out-file FILEPATH 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_query_ref-script-size.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_ref-script-size.cli index 84d0ba22b..edeca76a3 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_ref-script-size.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_ref-script-size.cli @@ -1,13 +1,13 @@ Usage: cardano-cli conway query ref-script-size --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - (--tx-in TX-IN) ( --mainnet | --testnet-magic NATURAL ) [ --volatile-tip | --immutable-tip ] + (--tx-in TX-IN) [ --output-json | --output-text ] @@ -26,7 +26,6 @@ Available options: (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era. (default: 21600) - --tx-in TX-IN Transaction input (TxId#TxIx). --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 @@ -34,6 +33,7 @@ Available options: --volatile-tip Use the volatile tip as a target. (This is the default) --immutable-tip Use the immutable tip as a target. + --tx-in TX-IN Transaction input (TxId#TxIx). --output-json Format reference inputs query output to JSON. Default format when writing to a file --output-text Format reference inputs query output to TEXT. Default diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_spo-stake-distribution.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_spo-stake-distribution.cli index 144c3d42f..4835c7455 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_spo-stake-distribution.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_spo-stake-distribution.cli @@ -4,6 +4,9 @@ Usage: cardano-cli conway query spo-stake-distribution --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [ --volatile-tip + | --immutable-tip + ] ( --all-spos | ( --spo-verification-key STRING @@ -11,9 +14,6 @@ Usage: cardano-cli conway query spo-stake-distribution --socket-path SOCKET_PATH | --spo-key-hash HASH ) ) - [ --volatile-tip - | --immutable-tip - ] [--out-file FILEPATH] Get the SPO stake distribution. @@ -32,6 +32,9 @@ 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 + --volatile-tip Use the volatile tip as a target. (This is the + default) + --immutable-tip Use the immutable tip as a target. --all-spos Query for all DReps. --spo-verification-key STRING SPO verification key (Bech32 or hex-encoded). @@ -39,8 +42,5 @@ Available options: Filepath of the SPO verification key. --spo-key-hash HASH SPO verification key hash (either Bech32-encoded or hex-encoded). - --volatile-tip Use the volatile tip as a target. (This is the - default) - --immutable-tip Use the immutable tip as a target. - --out-file FILEPATH The output file. + --out-file FILEPATH 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_query_stake-address-info.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_stake-address-info.cli index dc32de309..ecd6ea3b3 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_stake-address-info.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_stake-address-info.cli @@ -1,13 +1,13 @@ Usage: cardano-cli conway query stake-address-info --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - --address ADDRESS ( --mainnet | --testnet-magic NATURAL ) [ --volatile-tip | --immutable-tip ] + --address ADDRESS [--out-file FILEPATH] Get the current delegations and reward accounts filtered by stake address. @@ -22,7 +22,6 @@ Available options: (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era. (default: 21600) - --address ADDRESS Filter by Cardano stake address (Bech32-encoded). --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 @@ -30,5 +29,6 @@ Available options: --volatile-tip Use the volatile tip as a target. (This is the default) --immutable-tip Use the immutable tip as a target. + --address ADDRESS Filter by Cardano stake address (Bech32-encoded). --out-file FILEPATH 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_query_stake-snapshot.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_stake-snapshot.cli index 1d7de15e9..537b240ac 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_stake-snapshot.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_stake-snapshot.cli @@ -4,12 +4,12 @@ Usage: cardano-cli conway query stake-snapshot --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - ( --all-stake-pools - | (--stake-pool-id STAKE_POOL_ID) - ) [ --volatile-tip | --immutable-tip ] + ( --all-stake-pools + | (--stake-pool-id STAKE_POOL_ID) + ) [--out-file FILEPATH] Obtain the three stake snapshots for a pool, plus the total active stake @@ -29,12 +29,12 @@ 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 + --volatile-tip Use the volatile tip as a target. (This is the + default) + --immutable-tip Use the immutable tip as a target. --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). - --volatile-tip Use the volatile tip as a target. (This is the - default) - --immutable-tip Use the immutable tip as a target. --out-file FILEPATH 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_query_treasury.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_treasury.cli index a27c01538..0d51a56f2 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_treasury.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_treasury.cli @@ -24,5 +24,5 @@ Available options: --volatile-tip Use the volatile tip as a target. (This is the default) --immutable-tip Use the immutable tip as a target. - --out-file FILEPATH The output file. + --out-file FILEPATH 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_query_utxo.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_utxo.cli index e096ea297..7959ba9ea 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_utxo.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_utxo.cli @@ -1,11 +1,11 @@ Usage: cardano-cli conway query utxo --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] + (--mainnet | --testnet-magic NATURAL) + [--volatile-tip | --immutable-tip] ( --whole-utxo | (--address ADDRESS) | (--tx-in TX-IN) ) - (--mainnet | --testnet-magic NATURAL) - [--volatile-tip | --immutable-tip] [--output-json | --output-text] [--out-file FILEPATH] @@ -21,10 +21,6 @@ Available options: (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era. (default: 21600) - --whole-utxo Return the whole UTxO (only appropriate on small - testnets). - --address ADDRESS Filter by Cardano address(es) (Bech32-encoded). - --tx-in TX-IN Filter by transaction input (TxId#TxIx). --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 @@ -32,6 +28,10 @@ Available options: --volatile-tip Use the volatile tip as a target. (This is the default) --immutable-tip Use the immutable tip as a target. + --whole-utxo Return the whole UTxO (only appropriate on small + testnets). + --address ADDRESS Filter by Cardano address(es) (Bech32-encoded). + --tx-in TX-IN Filter by transaction input (TxId#TxIx). --output-json Format utxo query output to JSON. Default format when writing to a file --output-text Format utxo query output to TEXT. Default format when diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_committee-state.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_committee-state.cli index 9bb5fe85d..f23d4b640 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_committee-state.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_committee-state.cli @@ -4,6 +4,9 @@ Usage: cardano-cli latest query committee-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [ --volatile-tip + | --immutable-tip + ] [ --cold-verification-key STRING | --cold-verification-key-file FILEPATH | --cold-verification-key-hash STRING @@ -18,9 +21,6 @@ Usage: cardano-cli latest query committee-state --socket-path SOCKET_PATH | --expired | --unrecognized ] - [ --volatile-tip - | --immutable-tip - ] [--out-file FILEPATH] Get the committee state @@ -39,6 +39,9 @@ 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 + --volatile-tip Use the volatile tip as a target. (This is the + default) + --immutable-tip Use the immutable tip as a target. --cold-verification-key STRING Constitutional Committee cold key (hex-encoded). --cold-verification-key-file FILEPATH @@ -57,8 +60,5 @@ Available options: --expired Expired committee members --unrecognized Unrecognized committe members: a hot credential for an unknown cold credential - --volatile-tip Use the volatile tip as a target. (This is the - default) - --immutable-tip Use the immutable tip as a target. - --out-file FILEPATH The output file. + --out-file FILEPATH 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_query_constitution.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_constitution.cli index e10cd9d5c..00dc248a9 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_constitution.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_constitution.cli @@ -28,5 +28,5 @@ Available options: --volatile-tip Use the volatile tip as a target. (This is the default) --immutable-tip Use the immutable tip as a target. - --out-file FILEPATH The output file. + --out-file FILEPATH 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_query_drep-stake-distribution.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_drep-stake-distribution.cli index 6393e6265..91f30b9e4 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_drep-stake-distribution.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_drep-stake-distribution.cli @@ -5,6 +5,9 @@ Usage: cardano-cli latest query drep-stake-distribution ( --mainnet | --testnet-magic NATURAL ) + [ --volatile-tip + | --immutable-tip + ] ( --all-dreps | ( --drep-script-hash HASH @@ -13,9 +16,6 @@ Usage: cardano-cli latest query drep-stake-distribution | --drep-key-hash HASH ) ) - [ --volatile-tip - | --immutable-tip - ] [--out-file FILEPATH] Get the DRep stake distribution. @@ -34,6 +34,9 @@ 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 + --volatile-tip Use the volatile tip as a target. (This is the + default) + --immutable-tip Use the immutable tip as a target. --all-dreps Query for all DReps. --drep-script-hash HASH DRep script hash (hex-encoded). Obtain it with "cardano-cli hash script ...". @@ -43,8 +46,5 @@ Available options: Filepath of the DRep verification key. --drep-key-hash HASH DRep verification key hash (either Bech32-encoded or hex-encoded). - --volatile-tip Use the volatile tip as a target. (This is the - default) - --immutable-tip Use the immutable tip as a target. - --out-file FILEPATH The output file. + --out-file FILEPATH 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_query_drep-state.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_drep-state.cli index 9b6334588..f9f9cb3de 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_drep-state.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_drep-state.cli @@ -4,6 +4,7 @@ Usage: cardano-cli latest query drep-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [--volatile-tip | --immutable-tip] ( --all-dreps | ( --drep-script-hash HASH @@ -13,7 +14,6 @@ Usage: cardano-cli latest query drep-state --socket-path SOCKET_PATH ) ) [--include-stake] - [--volatile-tip | --immutable-tip] [--out-file FILEPATH] Get the DRep state. @@ -32,6 +32,9 @@ 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 + --volatile-tip Use the volatile tip as a target. (This is the + default) + --immutable-tip Use the immutable tip as a target. --all-dreps Query for all DReps. --drep-script-hash HASH DRep script hash (hex-encoded). Obtain it with "cardano-cli hash script ...". @@ -46,8 +49,5 @@ Available options: this is a convenience option to obtain all information concerning a DRep at once. This is a potentially expensive query, so it's OFF by default. - --volatile-tip Use the volatile tip as a target. (This is the - default) - --immutable-tip Use the immutable tip as a target. - --out-file FILEPATH The output file. + --out-file FILEPATH 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_query_gov-state.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_gov-state.cli index 6b90d3f8b..3f02df624 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_gov-state.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_gov-state.cli @@ -26,5 +26,5 @@ Available options: --volatile-tip Use the volatile tip as a target. (This is the default) --immutable-tip Use the immutable tip as a target. - --out-file FILEPATH The output file. + --out-file FILEPATH 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_query_kes-period-info.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_kes-period-info.cli index ec1d84839..5aaf7ab4f 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_kes-period-info.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_kes-period-info.cli @@ -4,10 +4,10 @@ Usage: cardano-cli latest query kes-period-info --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - --op-cert-file FILEPATH [ --volatile-tip | --immutable-tip ] + --op-cert-file FILEPATH [--out-file FILEPATH] Get information about the current KES period and your node's operational @@ -27,9 +27,9 @@ 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 - --op-cert-file FILEPATH Filepath of the node's operational certificate. --volatile-tip Use the volatile tip as a target. (This is the default) --immutable-tip Use the immutable tip as a target. + --op-cert-file FILEPATH Filepath of the node's operational certificate. --out-file FILEPATH 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_query_leadership-schedule.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_leadership-schedule.cli index 6896f5dc8..199c0eb8a 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_leadership-schedule.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_leadership-schedule.cli @@ -4,6 +4,9 @@ Usage: cardano-cli latest query leadership-schedule --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [ --volatile-tip + | --immutable-tip + ] --genesis FILEPATH ( --stake-pool-verification-key STRING | --cold-verification-key-file FILEPATH @@ -11,9 +14,6 @@ Usage: cardano-cli latest query leadership-schedule --socket-path SOCKET_PATH ) --vrf-signing-key-file FILEPATH (--current | --next) - [ --volatile-tip - | --immutable-tip - ] [ --output-json | --output-text ] @@ -35,6 +35,9 @@ 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 + --volatile-tip Use the volatile tip as a target. (This is the + default) + --immutable-tip Use the immutable tip as a target. --genesis FILEPATH Shelley genesis filepath --stake-pool-verification-key STRING Stake pool verification key (Bech32 or hex-encoded). @@ -47,9 +50,6 @@ Available options: Input filepath of the VRF signing key. --current Get the leadership schedule for the current epoch. --next Get the leadership schedule for the following epoch. - --volatile-tip Use the volatile tip as a target. (This is the - default) - --immutable-tip Use the immutable tip as a target. --output-json Format leadership-schedule query output to JSON. Default format when writing to a file --output-text Format leadership-schedule query output to TEXT. 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 506406ee9..e80649798 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,10 +4,10 @@ Usage: cardano-cli latest query pool-params --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [--volatile-tip | --immutable-tip] ( --all-stake-pools | (--stake-pool-id STAKE_POOL_ID) ) - [--volatile-tip | --immutable-tip] [--out-file FILEPATH] DEPRECATED. Use query pool-state instead. Dump the pool parameters @@ -28,12 +28,12 @@ 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 + --volatile-tip Use the volatile tip as a target. (This is the + default) + --immutable-tip Use the immutable tip as a target. --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). - --volatile-tip Use the volatile tip as a target. (This is the - default) - --immutable-tip Use the immutable tip as a target. --out-file FILEPATH 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_query_pool-state.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_pool-state.cli index 206f275dd..5662a7090 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,10 +4,10 @@ Usage: cardano-cli latest query pool-state --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [--volatile-tip | --immutable-tip] ( --all-stake-pools | (--stake-pool-id STAKE_POOL_ID) ) - [--volatile-tip | --immutable-tip] [--out-file FILEPATH] Dump the pool state @@ -26,12 +26,12 @@ 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 + --volatile-tip Use the volatile tip as a target. (This is the + default) + --immutable-tip Use the immutable tip as a target. --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). - --volatile-tip Use the volatile tip as a target. (This is the - default) - --immutable-tip Use the immutable tip as a target. --out-file FILEPATH 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_query_ref-script-size.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_ref-script-size.cli index 4fe1fa626..a4a945192 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_ref-script-size.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_ref-script-size.cli @@ -1,13 +1,13 @@ Usage: cardano-cli latest query ref-script-size --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - (--tx-in TX-IN) ( --mainnet | --testnet-magic NATURAL ) [ --volatile-tip | --immutable-tip ] + (--tx-in TX-IN) [ --output-json | --output-text ] @@ -26,7 +26,6 @@ Available options: (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era. (default: 21600) - --tx-in TX-IN Transaction input (TxId#TxIx). --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 @@ -34,6 +33,7 @@ Available options: --volatile-tip Use the volatile tip as a target. (This is the default) --immutable-tip Use the immutable tip as a target. + --tx-in TX-IN Transaction input (TxId#TxIx). --output-json Format reference inputs query output to JSON. Default format when writing to a file --output-text Format reference inputs query output to TEXT. Default diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_spo-stake-distribution.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_spo-stake-distribution.cli index d49c20011..28809b950 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_spo-stake-distribution.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_spo-stake-distribution.cli @@ -4,6 +4,9 @@ Usage: cardano-cli latest query spo-stake-distribution --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [ --volatile-tip + | --immutable-tip + ] ( --all-spos | ( --spo-verification-key STRING @@ -11,9 +14,6 @@ Usage: cardano-cli latest query spo-stake-distribution --socket-path SOCKET_PATH | --spo-key-hash HASH ) ) - [ --volatile-tip - | --immutable-tip - ] [--out-file FILEPATH] Get the SPO stake distribution. @@ -32,6 +32,9 @@ 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 + --volatile-tip Use the volatile tip as a target. (This is the + default) + --immutable-tip Use the immutable tip as a target. --all-spos Query for all DReps. --spo-verification-key STRING SPO verification key (Bech32 or hex-encoded). @@ -39,8 +42,5 @@ Available options: Filepath of the SPO verification key. --spo-key-hash HASH SPO verification key hash (either Bech32-encoded or hex-encoded). - --volatile-tip Use the volatile tip as a target. (This is the - default) - --immutable-tip Use the immutable tip as a target. - --out-file FILEPATH The output file. + --out-file FILEPATH 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_query_stake-address-info.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_stake-address-info.cli index 58fc9cc7c..1aa57454e 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_stake-address-info.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_stake-address-info.cli @@ -1,13 +1,13 @@ Usage: cardano-cli latest query stake-address-info --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - --address ADDRESS ( --mainnet | --testnet-magic NATURAL ) [ --volatile-tip | --immutable-tip ] + --address ADDRESS [--out-file FILEPATH] Get the current delegations and reward accounts filtered by stake address. @@ -22,7 +22,6 @@ Available options: (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era. (default: 21600) - --address ADDRESS Filter by Cardano stake address (Bech32-encoded). --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 @@ -30,5 +29,6 @@ Available options: --volatile-tip Use the volatile tip as a target. (This is the default) --immutable-tip Use the immutable tip as a target. + --address ADDRESS Filter by Cardano stake address (Bech32-encoded). --out-file FILEPATH 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_query_stake-snapshot.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_stake-snapshot.cli index 703e9645a..e641ec379 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_stake-snapshot.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_stake-snapshot.cli @@ -4,12 +4,12 @@ Usage: cardano-cli latest query stake-snapshot --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) - ( --all-stake-pools - | (--stake-pool-id STAKE_POOL_ID) - ) [ --volatile-tip | --immutable-tip ] + ( --all-stake-pools + | (--stake-pool-id STAKE_POOL_ID) + ) [--out-file FILEPATH] Obtain the three stake snapshots for a pool, plus the total active stake @@ -29,12 +29,12 @@ 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 + --volatile-tip Use the volatile tip as a target. (This is the + default) + --immutable-tip Use the immutable tip as a target. --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). - --volatile-tip Use the volatile tip as a target. (This is the - default) - --immutable-tip Use the immutable tip as a target. --out-file FILEPATH 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_query_treasury.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_treasury.cli index 8159ed0e3..837f9e9ae 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_treasury.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_treasury.cli @@ -24,5 +24,5 @@ Available options: --volatile-tip Use the volatile tip as a target. (This is the default) --immutable-tip Use the immutable tip as a target. - --out-file FILEPATH The output file. + --out-file FILEPATH 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_query_utxo.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_utxo.cli index 6e22fa456..40359e522 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_utxo.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_utxo.cli @@ -1,11 +1,11 @@ Usage: cardano-cli latest query utxo --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] + (--mainnet | --testnet-magic NATURAL) + [--volatile-tip | --immutable-tip] ( --whole-utxo | (--address ADDRESS) | (--tx-in TX-IN) ) - (--mainnet | --testnet-magic NATURAL) - [--volatile-tip | --immutable-tip] [--output-json | --output-text] [--out-file FILEPATH] @@ -21,10 +21,6 @@ Available options: (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era. (default: 21600) - --whole-utxo Return the whole UTxO (only appropriate on small - testnets). - --address ADDRESS Filter by Cardano address(es) (Bech32-encoded). - --tx-in TX-IN Filter by transaction input (TxId#TxIx). --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 @@ -32,6 +28,10 @@ Available options: --volatile-tip Use the volatile tip as a target. (This is the default) --immutable-tip Use the immutable tip as a target. + --whole-utxo Return the whole UTxO (only appropriate on small + testnets). + --address ADDRESS Filter by Cardano address(es) (Bech32-encoded). + --tx-in TX-IN Filter by transaction input (TxId#TxIx). --output-json Format utxo query output to JSON. Default format when writing to a file --output-text Format utxo query output to TEXT. Default format when diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query_ref-script-size.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query_ref-script-size.cli index 8fab62990..9203eb05d 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query_ref-script-size.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query_ref-script-size.cli @@ -1,10 +1,10 @@ Usage: cardano-cli mary query ref-script-size --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - (--tx-in TX-IN) ( --mainnet | --testnet-magic NATURAL ) + (--tx-in TX-IN) [--output-json | --output-text] [--out-file FILEPATH] @@ -21,11 +21,11 @@ Available options: (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era. (default: 21600) - --tx-in TX-IN Transaction input (TxId#TxIx). --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 + --tx-in TX-IN Transaction input (TxId#TxIx). --output-json Format reference inputs query output to JSON. Default format when writing to a file --output-text Format reference inputs query output to TEXT. Default diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query_stake-address-info.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query_stake-address-info.cli index ea2f5f7a0..720b57f5c 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query_stake-address-info.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query_stake-address-info.cli @@ -1,10 +1,10 @@ Usage: cardano-cli mary query stake-address-info --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - --address ADDRESS ( --mainnet | --testnet-magic NATURAL ) + --address ADDRESS [--out-file FILEPATH] Get the current delegations and reward accounts filtered by stake address. @@ -19,10 +19,10 @@ Available options: (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era. (default: 21600) - --address ADDRESS Filter by Cardano stake address (Bech32-encoded). --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 + --address ADDRESS Filter by Cardano stake address (Bech32-encoded). --out-file FILEPATH 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_query_utxo.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query_utxo.cli index 36d8470c2..a3cb2feb6 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query_utxo.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query_utxo.cli @@ -1,10 +1,10 @@ Usage: cardano-cli mary query utxo --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] + (--mainnet | --testnet-magic NATURAL) ( --whole-utxo | (--address ADDRESS) | (--tx-in TX-IN) ) - (--mainnet | --testnet-magic NATURAL) [--output-json | --output-text] [--out-file FILEPATH] @@ -20,14 +20,14 @@ Available options: (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era. (default: 21600) - --whole-utxo Return the whole UTxO (only appropriate on small - testnets). - --address ADDRESS Filter by Cardano address(es) (Bech32-encoded). - --tx-in TX-IN Filter by transaction input (TxId#TxIx). --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 + --whole-utxo Return the whole UTxO (only appropriate on small + testnets). + --address ADDRESS Filter by Cardano address(es) (Bech32-encoded). + --tx-in TX-IN Filter by transaction input (TxId#TxIx). --output-json Format utxo query output to JSON. Default format when writing to a file --output-text Format utxo query output to TEXT. Default format when diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/query_kes-period-info.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/query_kes-period-info.cli index 6c5976792..a38b0ba8d 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/query_kes-period-info.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/query_kes-period-info.cli @@ -2,8 +2,8 @@ Usage: cardano-cli query kes-period-info --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] (--mainnet | --testnet-magic NATURAL) - --op-cert-file FILEPATH [--volatile-tip | --immutable-tip] + --op-cert-file FILEPATH [--out-file FILEPATH] Get information about the current KES period and your node's operational @@ -23,9 +23,9 @@ 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 - --op-cert-file FILEPATH Filepath of the node's operational certificate. --volatile-tip Use the volatile tip as a target. (This is the default) --immutable-tip Use the immutable tip as a target. + --op-cert-file FILEPATH Filepath of the node's operational certificate. --out-file FILEPATH 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/query_leadership-schedule.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/query_leadership-schedule.cli index ea7b3db9b..2de97171c 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/query_leadership-schedule.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/query_leadership-schedule.cli @@ -4,6 +4,9 @@ Usage: cardano-cli query leadership-schedule --socket-path SOCKET_PATH ( --mainnet | --testnet-magic NATURAL ) + [ --volatile-tip + | --immutable-tip + ] --genesis FILEPATH ( --stake-pool-verification-key STRING | --cold-verification-key-file FILEPATH @@ -11,9 +14,6 @@ Usage: cardano-cli query leadership-schedule --socket-path SOCKET_PATH ) --vrf-signing-key-file FILEPATH (--current | --next) - [ --volatile-tip - | --immutable-tip - ] [--output-json | --output-text] [--out-file FILEPATH] @@ -33,6 +33,9 @@ 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 + --volatile-tip Use the volatile tip as a target. (This is the + default) + --immutable-tip Use the immutable tip as a target. --genesis FILEPATH Shelley genesis filepath --stake-pool-verification-key STRING Stake pool verification key (Bech32 or hex-encoded). @@ -45,9 +48,6 @@ Available options: Input filepath of the VRF signing key. --current Get the leadership schedule for the current epoch. --next Get the leadership schedule for the following epoch. - --volatile-tip Use the volatile tip as a target. (This is the - default) - --immutable-tip Use the immutable tip as a target. --output-json Format leadership-schedule query output to JSON. Default format when writing to a file --output-text Format leadership-schedule query output to TEXT. 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 5aa0f0c42..d692e6695 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,10 +1,10 @@ Usage: cardano-cli query pool-params --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] (--mainnet | --testnet-magic NATURAL) + [--volatile-tip | --immutable-tip] ( --all-stake-pools | (--stake-pool-id STAKE_POOL_ID) ) - [--volatile-tip | --immutable-tip] [--out-file FILEPATH] DEPRECATED. Use query pool-state instead. Dump the pool parameters @@ -25,12 +25,12 @@ 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 + --volatile-tip Use the volatile tip as a target. (This is the + default) + --immutable-tip Use the immutable tip as a target. --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). - --volatile-tip Use the volatile tip as a target. (This is the - default) - --immutable-tip Use the immutable tip as a target. --out-file FILEPATH 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/query_pool-state.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/query_pool-state.cli index be6641d6b..cc9d8b2e9 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,10 +1,10 @@ Usage: cardano-cli query pool-state --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] (--mainnet | --testnet-magic NATURAL) + [--volatile-tip | --immutable-tip] ( --all-stake-pools | (--stake-pool-id STAKE_POOL_ID) ) - [--volatile-tip | --immutable-tip] [--out-file FILEPATH] Dump the pool state @@ -23,12 +23,12 @@ 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 + --volatile-tip Use the volatile tip as a target. (This is the + default) + --immutable-tip Use the immutable tip as a target. --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). - --volatile-tip Use the volatile tip as a target. (This is the - default) - --immutable-tip Use the immutable tip as a target. --out-file FILEPATH 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/query_stake-address-info.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/query_stake-address-info.cli index e1dba2c35..d00ca2e83 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/query_stake-address-info.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/query_stake-address-info.cli @@ -1,11 +1,11 @@ Usage: cardano-cli query stake-address-info --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - --address ADDRESS ( --mainnet | --testnet-magic NATURAL ) [--volatile-tip | --immutable-tip] + --address ADDRESS [--out-file FILEPATH] Get the current delegations and reward accounts filtered by stake address. @@ -20,7 +20,6 @@ Available options: (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era. (default: 21600) - --address ADDRESS Filter by Cardano stake address (Bech32-encoded). --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 @@ -28,5 +27,6 @@ Available options: --volatile-tip Use the volatile tip as a target. (This is the default) --immutable-tip Use the immutable tip as a target. + --address ADDRESS Filter by Cardano stake address (Bech32-encoded). --out-file FILEPATH 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/query_stake-snapshot.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/query_stake-snapshot.cli index f6cd33921..393d0f432 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/query_stake-snapshot.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/query_stake-snapshot.cli @@ -1,10 +1,10 @@ Usage: cardano-cli query stake-snapshot --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] (--mainnet | --testnet-magic NATURAL) + [--volatile-tip | --immutable-tip] ( --all-stake-pools | (--stake-pool-id STAKE_POOL_ID) ) - [--volatile-tip | --immutable-tip] [--out-file FILEPATH] Obtain the three stake snapshots for a pool, plus the total active stake @@ -24,12 +24,12 @@ 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 + --volatile-tip Use the volatile tip as a target. (This is the + default) + --immutable-tip Use the immutable tip as a target. --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). - --volatile-tip Use the volatile tip as a target. (This is the - default) - --immutable-tip Use the immutable tip as a target. --out-file FILEPATH 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/query_utxo.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/query_utxo.cli index f0ecd043a..7f9512741 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/query_utxo.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/query_utxo.cli @@ -1,11 +1,11 @@ Usage: cardano-cli query utxo --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] + (--mainnet | --testnet-magic NATURAL) + [--volatile-tip | --immutable-tip] ( --whole-utxo | (--address ADDRESS) | (--tx-in TX-IN) ) - (--mainnet | --testnet-magic NATURAL) - [--volatile-tip | --immutable-tip] [--output-json | --output-text] [--out-file FILEPATH] @@ -21,10 +21,6 @@ Available options: (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era. (default: 21600) - --whole-utxo Return the whole UTxO (only appropriate on small - testnets). - --address ADDRESS Filter by Cardano address(es) (Bech32-encoded). - --tx-in TX-IN Filter by transaction input (TxId#TxIx). --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 @@ -32,6 +28,10 @@ Available options: --volatile-tip Use the volatile tip as a target. (This is the default) --immutable-tip Use the immutable tip as a target. + --whole-utxo Return the whole UTxO (only appropriate on small + testnets). + --address ADDRESS Filter by Cardano address(es) (Bech32-encoded). + --tx-in TX-IN Filter by transaction input (TxId#TxIx). --output-json Format utxo query output to JSON. Default format when writing to a file --output-text Format utxo query output to TEXT. Default format when diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query_ref-script-size.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query_ref-script-size.cli index 4e24588a6..e9ebfbf0a 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query_ref-script-size.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query_ref-script-size.cli @@ -1,10 +1,10 @@ Usage: cardano-cli shelley query ref-script-size --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - (--tx-in TX-IN) ( --mainnet | --testnet-magic NATURAL ) + (--tx-in TX-IN) [ --output-json | --output-text ] @@ -23,11 +23,11 @@ Available options: (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era. (default: 21600) - --tx-in TX-IN Transaction input (TxId#TxIx). --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 + --tx-in TX-IN Transaction input (TxId#TxIx). --output-json Format reference inputs query output to JSON. Default format when writing to a file --output-text Format reference inputs query output to TEXT. Default diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query_stake-address-info.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query_stake-address-info.cli index 508815964..2b5de1ed0 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query_stake-address-info.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query_stake-address-info.cli @@ -1,10 +1,10 @@ Usage: cardano-cli shelley query stake-address-info --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] - --address ADDRESS ( --mainnet | --testnet-magic NATURAL ) + --address ADDRESS [--out-file FILEPATH] Get the current delegations and reward accounts filtered by stake address. @@ -19,10 +19,10 @@ Available options: (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era. (default: 21600) - --address ADDRESS Filter by Cardano stake address (Bech32-encoded). --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 + --address ADDRESS Filter by Cardano stake address (Bech32-encoded). --out-file FILEPATH 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_query_utxo.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query_utxo.cli index 1d781834a..10ed28d75 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query_utxo.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query_utxo.cli @@ -1,10 +1,10 @@ Usage: cardano-cli shelley query utxo --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] + (--mainnet | --testnet-magic NATURAL) ( --whole-utxo | (--address ADDRESS) | (--tx-in TX-IN) ) - (--mainnet | --testnet-magic NATURAL) [--output-json | --output-text] [--out-file FILEPATH] @@ -20,14 +20,14 @@ Available options: (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era. (default: 21600) - --whole-utxo Return the whole UTxO (only appropriate on small - testnets). - --address ADDRESS Filter by Cardano address(es) (Bech32-encoded). - --tx-in TX-IN Filter by transaction input (TxId#TxIx). --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 + --whole-utxo Return the whole UTxO (only appropriate on small + testnets). + --address ADDRESS Filter by Cardano address(es) (Bech32-encoded). + --tx-in TX-IN Filter by transaction input (TxId#TxIx). --output-json Format utxo query output to JSON. Default format when writing to a file --output-text Format utxo query output to TEXT. Default format when