diff --git a/cardano-cli/src/Cardano/CLI/Environment.hs b/cardano-cli/src/Cardano/CLI/Environment.hs index fd241a9a6..960a88b0e 100644 --- a/cardano-cli/src/Cardano/CLI/Environment.hs +++ b/cardano-cli/src/Cardano/CLI/Environment.hs @@ -4,18 +4,19 @@ -- | This module defines constants derived from the environment. module Cardano.CLI.Environment ( EnvCli (..) - , envCliAnyShelleyBasedEra - , envCliAnyShelleyToBabbageEra + , envCliSomeEra + , envCliAnyEon , getEnvCli , getEnvNetworkId , getEnvSocketPath ) where -import Cardano.Api (AnyCardanoEra (..), CardanoEra (..), EraInEon (..), NetworkId (..), - NetworkMagic (..), ShelleyBasedEra (..), ShelleyToBabbageEra (..), - forEraInEonMaybe) +import Cardano.Api (AnyCardanoEra (..), CardanoEra (..), Eon, EraInEon (..), + NetworkId (..), NetworkMagic (..), forEraInEonMaybe) +import qualified Cardano.Api.Experimental as Exp +import Data.Typeable import Data.Word (Word32) import qualified System.Environment as IO import qualified System.IO as IO @@ -40,13 +41,13 @@ getEnvCli = do , envCliAnyCardanoEra = mCardanoEra } -envCliAnyShelleyBasedEra :: EnvCli -> Maybe (EraInEon ShelleyBasedEra) -envCliAnyShelleyBasedEra envCli = do +envCliSomeEra :: EnvCli -> Maybe (Exp.Some Exp.Era) +envCliSomeEra envCli = do AnyCardanoEra era <- envCliAnyCardanoEra envCli - forEraInEonMaybe era EraInEon + forEraInEonMaybe era Exp.Some -envCliAnyShelleyToBabbageEra :: EnvCli -> Maybe (EraInEon ShelleyToBabbageEra) -envCliAnyShelleyToBabbageEra envCli = do +envCliAnyEon :: Typeable eon => Eon eon => EnvCli -> Maybe (EraInEon eon) +envCliAnyEon envCli = do AnyCardanoEra era <- envCliAnyCardanoEra envCli forEraInEonMaybe era EraInEon diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Commands.hs b/cardano-cli/src/Cardano/CLI/EraBased/Commands.hs index aa6711dae..c25844b8e 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Commands.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Commands.hs @@ -20,7 +20,7 @@ import Cardano.CLI.EraBased.Commands.Key import Cardano.CLI.EraBased.Commands.Node import Cardano.CLI.EraBased.Commands.Query import Cardano.CLI.EraBased.Commands.StakeAddress -import Cardano.CLI.EraBased.Commands.StakePool +import Cardano.CLI.EraBased.Commands.StakePool hiding (sbe) import Cardano.CLI.EraBased.Commands.TextView import Cardano.CLI.EraBased.Commands.Transaction import Cardano.CLI.EraBased.Options.Address @@ -113,17 +113,18 @@ pAnyEraCommand envCli = ] pCmds :: ShelleyBasedEra era -> EnvCli -> Parser (Cmds era) -pCmds era envCli = +pCmds sbe' envCli = do + let cEra = toCardanoEra sbe' asum $ catMaybes - [ fmap AddressCmds <$> pAddressCmds (toCardanoEra era) envCli + [ fmap AddressCmds <$> pAddressCmds cEra envCli , fmap KeyCmds <$> pKeyCmds - , fmap GenesisCmds <$> pGenesisCmds (toCardanoEra era) envCli - , fmap GovernanceCmds <$> pGovernanceCmds (toCardanoEra era) + , fmap GenesisCmds <$> pGenesisCmds cEra envCli + , fmap GovernanceCmds <$> pGovernanceCmds cEra , fmap NodeCmds <$> pNodeCmds - , fmap QueryCmds <$> pQueryCmds (toCardanoEra era) envCli - , fmap StakeAddressCmds <$> pStakeAddressCmds (toCardanoEra era) envCli - , fmap StakePoolCmds <$> pStakePoolCmds (toCardanoEra era) envCli + , fmap QueryCmds <$> pQueryCmds cEra envCli + , fmap StakeAddressCmds <$> pStakeAddressCmds cEra envCli + , fmap StakePoolCmds <$> pStakePoolCmds cEra envCli , fmap TextViewCmds <$> pTextViewCmds - , fmap TransactionCmds <$> pTransactionCmds era envCli + , fmap TransactionCmds <$> pTransactionCmds sbe' envCli ] diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Commands/Transaction.hs b/cardano-cli/src/Cardano/CLI/EraBased/Commands/Transaction.hs index 62e359db9..e18567296 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Commands/Transaction.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Commands/Transaction.hs @@ -21,6 +21,7 @@ module Cardano.CLI.EraBased.Commands.Transaction ) where +import qualified Cardano.Api.Experimental as Exp import Cardano.Api.Ledger (Coin) import Cardano.Api.Shelley @@ -87,7 +88,7 @@ data TransactionBuildRawCmdArgs era = TransactionBuildRawCmdArgs -- | Like 'TransactionBuildRaw' but without the fee, and with a change output. data TransactionBuildCmdArgs era = TransactionBuildCmdArgs - { eon :: !(ShelleyBasedEra era) + { currentEra :: !(Exp.Era era) , nodeSocketPath :: !SocketPath , consensusModeParams :: !ConsensusModeParams , networkId :: !NetworkId @@ -135,7 +136,7 @@ data TransactionBuildCmdArgs era = TransactionBuildCmdArgs -- | Like 'TransactionBuildCmd' but does not require explicit access to a running node data TransactionBuildEstimateCmdArgs era = TransactionBuildEstimateCmdArgs - { eon :: !(MaryEraOnwards era) + { currentEra :: !(Exp.Era era) , mScriptValidity :: !(Maybe ScriptValidity) -- ^ Mark script as expected to pass or fail validation , shelleyWitnesses :: !Int diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Options/Common.hs b/cardano-cli/src/Cardano/CLI/EraBased/Options/Common.hs index b6c09081b..d659fde74 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Options/Common.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Options/Common.hs @@ -16,8 +16,7 @@ import Cardano.Api hiding (bounded, parseFilePath) import qualified Cardano.Api.Ledger as L import Cardano.Api.Shelley hiding (bounded, parseFilePath) -import Cardano.CLI.Environment (EnvCli (..), envCliAnyShelleyBasedEra, - envCliAnyShelleyToBabbageEra) +import Cardano.CLI.Environment (EnvCli (..), envCliAnyEon) import Cardano.CLI.Parser import Cardano.CLI.Read import Cardano.CLI.Types.Common @@ -385,8 +384,8 @@ pAnyShelleyBasedEra envCli = , Opt.flag' (EraInEon ShelleyBasedEraConway) $ mconcat [Opt.long "conway-era", Opt.help "Specify the Conway era"] ] - , maybeToList $ pure <$> envCliAnyShelleyBasedEra envCli - , pure . pure $ EraInEon ShelleyBasedEraBabbage + , maybeToList $ pure <$> envCliAnyEon envCli + , pure $ pure $ EraInEon ShelleyBasedEraBabbage ] deprecationText :: String @@ -408,94 +407,10 @@ pAnyShelleyToBabbageEra envCli = , Opt.flag' (EraInEon ShelleyToBabbageEraBabbage) $ mconcat [Opt.long "babbage-era", Opt.help $ "Specify the Babbage era (default)" <> deprecationText] ] - , maybeToList $ pure <$> envCliAnyShelleyToBabbageEra envCli + , maybeToList $ pure <$> envCliAnyEon envCli , pure . pure $ EraInEon ShelleyToBabbageEraBabbage ] -pShelleyBasedShelley :: EnvCli -> Parser (EraInEon ShelleyBasedEra) -pShelleyBasedShelley envCli = - asum $ - mconcat - [ - [ Opt.flag' (EraInEon ShelleyBasedEraShelley) $ - mconcat [Opt.long "shelley-era", Opt.help $ "Specify the Shelley era" <> deprecationText] - ] - , maybeToList $ - fmap pure $ - mfilter (== EraInEon ShelleyBasedEraShelley) $ - envCliAnyShelleyBasedEra envCli - ] - -pShelleyBasedAllegra :: EnvCli -> Parser (EraInEon ShelleyBasedEra) -pShelleyBasedAllegra envCli = - asum $ - mconcat - [ - [ Opt.flag' (EraInEon ShelleyBasedEraAllegra) $ - mconcat [Opt.long "allegra-era", Opt.help $ "Specify the Allegra era" <> deprecationText] - ] - , maybeToList $ - fmap pure $ - mfilter (== EraInEon ShelleyBasedEraAllegra) $ - envCliAnyShelleyBasedEra envCli - ] - -pShelleyBasedMary :: EnvCli -> Parser (EraInEon ShelleyBasedEra) -pShelleyBasedMary envCli = - asum $ - mconcat - [ - [ Opt.flag' (EraInEon ShelleyBasedEraMary) $ - mconcat [Opt.long "mary-era", Opt.help $ "Specify the Mary era" <> deprecationText] - ] - , maybeToList $ - fmap pure $ - mfilter (== EraInEon ShelleyBasedEraMary) $ - envCliAnyShelleyBasedEra envCli - ] - -pShelleyBasedAlonzo :: EnvCli -> Parser (EraInEon ShelleyBasedEra) -pShelleyBasedAlonzo envCli = - asum $ - mconcat - [ - [ Opt.flag' (EraInEon ShelleyBasedEraAlonzo) $ - mconcat [Opt.long "alonzo-era", Opt.help $ "Specify the Alonzo era" <> deprecationText] - ] - , maybeToList $ - fmap pure $ - mfilter (== EraInEon ShelleyBasedEraAlonzo) $ - envCliAnyShelleyBasedEra envCli - ] - -pShelleyBasedBabbage :: EnvCli -> Parser (EraInEon ShelleyBasedEra) -pShelleyBasedBabbage envCli = - asum $ - mconcat - [ - [ Opt.flag' (EraInEon ShelleyBasedEraBabbage) $ - mconcat [Opt.long "babbage-era", Opt.help $ "Specify the Babbage era" <> deprecationText] - ] - , maybeToList $ - fmap pure $ - mfilter (== EraInEon ShelleyBasedEraBabbage) $ - envCliAnyShelleyBasedEra envCli - ] - -pShelleyBasedConway :: EnvCli -> Parser (EraInEon ShelleyBasedEra) -pShelleyBasedConway envCli = - asum $ - mconcat - [ - [ Opt.flag' (EraInEon ShelleyBasedEraConway) $ - mconcat [Opt.long "conway-era", Opt.help "Specify the Conway era"] - ] - , maybeToList $ - fmap pure $ - mfilter (== EraInEon ShelleyBasedEraConway) $ - envCliAnyShelleyBasedEra envCli - ] - pFileOutDirection :: String -> String -> Parser (File a Out) pFileOutDirection l h = File <$> parseFilePath l h diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Options/Transaction.hs b/cardano-cli/src/Cardano/CLI/EraBased/Options/Transaction.hs index b398d1bd7..7ae6b49b5 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Options/Transaction.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Options/Transaction.hs @@ -10,6 +10,7 @@ module Cardano.CLI.EraBased.Options.Transaction where import Cardano.Api hiding (QueryInShelleyBasedEra (..)) +import qualified Cardano.Api.Experimental as Exp import Cardano.CLI.Environment (EnvCli (..)) import Cardano.CLI.EraBased.Commands.Transaction @@ -30,7 +31,7 @@ pTransactionCmds => ShelleyBasedEra era -> EnvCli -> Maybe (Parser (TransactionCmds era)) -pTransactionCmds era envCli = +pTransactionCmds era' envCli = subInfoParser "transaction" ( Opt.progDesc $ @@ -40,7 +41,7 @@ pTransactionCmds era envCli = ) [ Just $ subParser "build-raw" $ - Opt.info (pTransactionBuildRaw era) $ + Opt.info (pTransactionBuildRaw era') $ Opt.progDescDoc $ Just $ mconcat @@ -55,8 +56,8 @@ pTransactionCmds era envCli = , "undesired tx body. See nested [] notation above for details." ] ] - , pTransactionBuildCmd era envCli - , forShelleyBasedEraInEon era Nothing (`pTransactionBuildEstimateCmd` envCli) + , pTransactionBuildCmd era' envCli + , forShelleyBasedEraInEon era' Nothing (`pTransactionBuildEstimateCmd` envCli) , Just $ subParser "sign" $ Opt.info (pTransactionSign envCli) $ @@ -88,9 +89,9 @@ pTransactionCmds era envCli = Opt.progDesc "Calculate the minimum fee for a transaction." , Just $ subParser "calculate-min-required-utxo" $ - Opt.info (pTransactionCalculateMinReqUTxO era) $ + Opt.info (pTransactionCalculateMinReqUTxO era') $ Opt.progDesc "Calculate the minimum required UTxO for a transaction output." - , Just $ pCalculateMinRequiredUtxoBackwardCompatible era + , Just $ pCalculateMinRequiredUtxoBackwardCompatible era' , Just $ subParser "hash-script-data" $ Opt.info pTxHashScriptData $ @@ -108,14 +109,14 @@ pTransactionCmds era envCli = -- Backwards compatible parsers calcMinValueInfo :: ShelleyBasedEra era -> ParserInfo (TransactionCmds era) -calcMinValueInfo era = - Opt.info (pTransactionCalculateMinReqUTxO era) $ +calcMinValueInfo era' = + Opt.info (pTransactionCalculateMinReqUTxO era') $ Opt.progDesc "DEPRECATED: Use 'calculate-min-required-utxo' instead." pCalculateMinRequiredUtxoBackwardCompatible :: ShelleyBasedEra era -> Parser (TransactionCmds era) -pCalculateMinRequiredUtxoBackwardCompatible era = +pCalculateMinRequiredUtxoBackwardCompatible era' = Opt.subparser $ - Opt.command "calculate-min-value" (calcMinValueInfo era) <> Opt.internal + Opt.command "calculate-min-value" (calcMinValueInfo era') <> Opt.internal assembleInfo :: ParserInfo (TransactionCmds era) assembleInfo = @@ -147,11 +148,13 @@ pScriptValidity = ] ] -pTransactionBuildCmd :: ShelleyBasedEra era -> EnvCli -> Maybe (Parser (TransactionCmds era)) -pTransactionBuildCmd era envCli = do +pTransactionBuildCmd + :: ShelleyBasedEra era -> EnvCli -> Maybe (Parser (TransactionCmds era)) +pTransactionBuildCmd sbe envCli = do + era' <- forEraMaybeEon (toCardanoEra sbe) pure $ subParser "build" $ - Opt.info (pCmd era) $ + Opt.info (pCmd era') $ Opt.progDescDoc $ Just $ mconcat @@ -167,10 +170,9 @@ pTransactionBuildCmd era envCli = do ] ] where - pCmd :: ShelleyBasedEra era -> Parser (TransactionCmds era) - pCmd sbe = + pCmd era' = do fmap TransactionBuildCmd $ - TransactionBuildCmdArgs sbe + TransactionBuildCmdArgs era' <$> pSocketPath envCli <*> pConsensusModeParams <*> pNetworkId envCli @@ -204,11 +206,13 @@ pTransactionBuildCmd era envCli = do <*> pTxBuildOutputOptions -- | Estimate the transaction fees without access to a live node. -pTransactionBuildEstimateCmd :: MaryEraOnwards era -> EnvCli -> Maybe (Parser (TransactionCmds era)) -pTransactionBuildEstimateCmd era _envCli = do +pTransactionBuildEstimateCmd + :: forall era. MaryEraOnwards era -> EnvCli -> Maybe (Parser (TransactionCmds era)) +pTransactionBuildEstimateCmd eon' _envCli = do + era' <- forEraMaybeEon (toCardanoEra eon') pure $ subParser "build-estimate" $ - Opt.info (pCmd era) $ + Opt.info (pCmd era') $ Opt.progDescDoc $ Just $ mconcat @@ -225,11 +229,11 @@ pTransactionBuildEstimateCmd era _envCli = do ] ] where - pCmd :: MaryEraOnwards era -> Parser (TransactionCmds era) - pCmd w = do - let sbe = maryEraOnwardsToShelleyBasedEra w + pCmd :: Exp.Era era -> Parser (TransactionCmds era) + pCmd era' = do + let sbe = Exp.eraToSbe era' fmap TransactionBuildEstimateCmd $ - TransactionBuildEstimateCmdArgs w + TransactionBuildEstimateCmdArgs era' <$> optional pScriptValidity <*> pNumberOfShelleyKeyWitnesses <*> optional pNumberOfByronKeyWitnesses @@ -274,31 +278,31 @@ pChangeAddress = ] pTransactionBuildRaw :: ShelleyBasedEra era -> Parser (TransactionCmds era) -pTransactionBuildRaw era = +pTransactionBuildRaw era' = fmap TransactionBuildRawCmd $ - TransactionBuildRawCmdArgs era + TransactionBuildRawCmdArgs era' <$> optional pScriptValidity - <*> some (pTxIn era ManualBalance) + <*> some (pTxIn era' ManualBalance) <*> many pReadOnlyReferenceTxIn <*> many pTxInCollateral <*> optional pReturnCollateral <*> optional pTotalCollateral <*> many pRequiredSigner <*> many pTxOut - <*> optional (pMintMultiAsset era ManualBalance) + <*> optional (pMintMultiAsset era' ManualBalance) <*> optional pInvalidBefore - <*> pInvalidHereafter era + <*> pInvalidHereafter era' <*> pTxFee - <*> many (pCertificateFile era ManualBalance) - <*> many (pWithdrawal era ManualBalance) + <*> many (pCertificateFile era' ManualBalance) + <*> many (pWithdrawal era' ManualBalance) <*> pTxMetadataJsonSchema <*> many (pScriptFor "auxiliary-script-file" Nothing "Filepath of auxiliary script(s)") <*> many pMetadataFile <*> optional pProtocolParamsFile - <*> pFeatured era (optional pUpdateProposalFile) - <*> pVoteFiles era ManualBalance - <*> pProposalFiles era ManualBalance - <*> pCurrentTreasuryValueAndDonation era + <*> pFeatured era' (optional pUpdateProposalFile) + <*> pVoteFiles era' ManualBalance + <*> pProposalFiles era' ManualBalance + <*> pCurrentTreasuryValueAndDonation era' <*> pTxBodyFileOut pTransactionSign :: EnvCli -> Parser (TransactionCmds era) @@ -359,9 +363,9 @@ pTransactionCalculateMinFee = <* optional pTxOutCountDeprecated pTransactionCalculateMinReqUTxO :: ShelleyBasedEra era -> Parser (TransactionCmds era) -pTransactionCalculateMinReqUTxO era = +pTransactionCalculateMinReqUTxO era' = fmap TransactionCalculateMinValueCmd $ - TransactionCalculateMinValueCmdArgs era + TransactionCalculateMinValueCmdArgs era' <$> pProtocolParamsFile <*> pTxOutShelleyBased diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Run.hs b/cardano-cli/src/Cardano/CLI/EraBased/Run.hs index f046a7d8a..bf381a1f3 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Run.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Run.hs @@ -21,6 +21,7 @@ import Cardano.CLI.EraBased.Run.StakeAddress import Cardano.CLI.EraBased.Run.StakePool import Cardano.CLI.EraBased.Run.TextView import Cardano.CLI.EraBased.Run.Transaction +import Cardano.CLI.Helpers (printEraDeprecationWarning) import Cardano.CLI.Types.Errors.CmdError import Data.Function ((&)) @@ -31,11 +32,7 @@ runAnyEraCommand -> ExceptT CmdError IO () runAnyEraCommand = \case AnyEraCommandOf sbe cmd -> do - -- FIXME: Uncomment this after CLI release - -- let selectedEraNum = fromEnum $ AnyShelleyBasedEra sbe - -- currentEraNum = fromEnum $ AnyShelleyBasedEra ShelleyBasedEraConway - -- when (selectedEraNum < currentEraNum) $ - -- printWarning "Selected era is deprecated and will be removed in the future." + printEraDeprecationWarning sbe shelleyBasedEraConstraints sbe $ runCmds cmd runCmds diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Run/Transaction.hs b/cardano-cli/src/Cardano/CLI/EraBased/Run/Transaction.hs index a82704022..fbde4bda7 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Run/Transaction.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Run/Transaction.hs @@ -36,7 +36,7 @@ where import Cardano.Api import Cardano.Api.Byron hiding (SomeByronSigningKey (..)) -import Cardano.Api.Experimental +import qualified Cardano.Api.Experimental as Exp import qualified Cardano.Api.Ledger as L import Cardano.Api.Shelley @@ -65,6 +65,7 @@ import Data.Bifunctor (Bifunctor (..)) import qualified Data.ByteString as Data.Bytestring import qualified Data.ByteString.Char8 as BS import qualified Data.ByteString.Lazy.Char8 as LBS +import Data.Containers.ListUtils (nubOrd) import Data.Data ((:~:) (..)) import qualified Data.Foldable as Foldable import Data.Function ((&)) @@ -103,12 +104,11 @@ runTransactionCmds = \case -- runTransactionBuildCmd - :: () - => Cmd.TransactionBuildCmdArgs era + :: Cmd.TransactionBuildCmdArgs era -> ExceptT TxCmdError IO () runTransactionBuildCmd Cmd.TransactionBuildCmdArgs - { eon + { currentEra , nodeSocketPath , consensusModeParams , networkId = networkId @@ -135,184 +135,178 @@ runTransactionBuildCmd , proposalFiles , treasuryDonation -- Maybe TxTreasuryDonation , buildOutputOptions - } = - caseShelleyToBabbageOrConwayEraOnwards - (left . TxCmdDeprecatedEra) - ( \ConwayEraOnwardsConway -> - shelleyBasedEraConstraints eon $ do - let era = toCardanoEra eon - - -- The user can specify an era prior to the era that the node is currently in. - -- We cannot use the user specified era to construct a query against a node because it may differ - -- from the node's era and this will result in the 'QueryEraMismatch' failure. - - let localNodeConnInfo = - LocalNodeConnectInfo - { localConsensusModeParams = consensusModeParams - , localNodeNetworkId = networkId - , localNodeSocketPath = nodeSocketPath - } - - inputsAndMaybeScriptWits <- firstExceptT TxCmdScriptWitnessError $ readScriptWitnessFiles eon txins - certFilesAndMaybeScriptWits <- - firstExceptT TxCmdScriptWitnessError $ readScriptWitnessFiles eon certificates - - -- TODO: Conway Era - How can we make this more composable? - certsAndMaybeScriptWits <- - sequence - [ fmap - (,mSwit) - ( firstExceptT TxCmdReadTextViewFileError . newExceptT $ - readFileTextEnvelope AsCertificate (File certFile) - ) - | (CertificateFile certFile, mSwit) <- certFilesAndMaybeScriptWits - ] - withdrawalsAndMaybeScriptWits <- - firstExceptT TxCmdScriptWitnessError $ - readScriptWitnessFilesTuple eon withdrawals - txMetadata <- - firstExceptT TxCmdMetadataError . newExceptT $ - readTxMetadata eon metadataSchema metadataFiles - valuesWithScriptWits <- readValueScriptWitnesses eon $ fromMaybe mempty mValue - scripts <- - firstExceptT TxCmdScriptFileError $ - mapM (readFileScriptInAnyLang . unFile) scriptFiles - txAuxScripts <- - hoistEither $ first TxCmdAuxScriptsValidationError $ validateTxAuxScripts eon scripts - - mProp <- case mUpdateProposalFile of - Just (Featured w (Just updateProposalFile)) -> - readTxUpdateProposal w updateProposalFile & firstExceptT TxCmdReadTextViewFileError - _ -> pure TxUpdateProposalNone - - requiredSigners <- - mapM (firstExceptT TxCmdRequiredSignerError . newExceptT . readRequiredSigner) reqSigners - mReturnCollateral <- forM mReturnColl $ toTxOutInShelleyBasedEra eon - - txOuts <- mapM (toTxOutInAnyEra eon) txouts - - -- Conway related - votingProceduresAndMaybeScriptWits <- - inEonForEra - (pure mempty) - (\w -> firstExceptT TxCmdVoteError $ ExceptT (readVotingProceduresFiles w voteFiles)) - era - - proposals <- - newExceptT $ - first TxCmdProposalError - <$> readTxGovernanceActions eon proposalFiles - - -- the same collateral input can be used for several plutus scripts - let filteredTxinsc = toList $ Set.fromList txinsc - - let allReferenceInputs = - getAllReferenceInputs - inputsAndMaybeScriptWits - (snd valuesWithScriptWits) - certsAndMaybeScriptWits - withdrawalsAndMaybeScriptWits - votingProceduresAndMaybeScriptWits - proposals - readOnlyReferenceInputs - - let inputsThatRequireWitnessing = [input | (input, _) <- inputsAndMaybeScriptWits] - allTxInputs = inputsThatRequireWitnessing ++ allReferenceInputs ++ filteredTxinsc - - AnyCardanoEra nodeEra <- - lift (executeLocalStateQueryExpr localNodeConnInfo Consensus.VolatileTip queryCurrentEra) - & onLeft (left . TxCmdQueryConvenienceError . AcqFailure) - & onLeft (left . TxCmdQueryConvenienceError . QceUnsupportedNtcVersion) - - (txEraUtxo, _, eraHistory, systemStart, _, _, _, featuredCurrentTreasuryValueM) <- - lift - ( executeLocalStateQueryExpr - localNodeConnInfo - Consensus.VolatileTip - (queryStateForBalancedTx nodeEra allTxInputs []) - ) - & onLeft (left . TxCmdQueryConvenienceError . AcqFailure) - & onLeft (left . TxCmdQueryConvenienceError) - - let currentTreasuryValueAndDonation = - case (treasuryDonation, unFeatured <$> featuredCurrentTreasuryValueM) of - (Nothing, _) -> Nothing -- We shouldn't specify the treasury value when no donation is being done - (Just _td, Nothing) -> Nothing -- TODO: Current treasury value couldn't be obtained but is required: we should fail suggesting that the node's version is too old - (Just td, Just ctv) -> Just (ctv, td) - - -- We need to construct the txBodycontent outside of runTxBuild - BalancedTxBody txBodyContent unsignedTx@(UnsignedTx balancedTxBody) _ _ <- - runTxBuild + } = do + let eon = Exp.eraToSbe currentEra + era' = toCardanoEra eon + + -- The user can specify an era prior to the era that the node is currently in. + -- We cannot use the user specified era to construct a query against a node because it may differ + -- from the node's era and this will result in the 'QueryEraMismatch' failure. + + let localNodeConnInfo = + LocalNodeConnectInfo + { localConsensusModeParams = consensusModeParams + , localNodeNetworkId = networkId + , localNodeSocketPath = nodeSocketPath + } + + inputsAndMaybeScriptWits <- firstExceptT TxCmdScriptWitnessError $ readScriptWitnessFiles eon txins + certFilesAndMaybeScriptWits <- + firstExceptT TxCmdScriptWitnessError $ readScriptWitnessFiles eon certificates + + -- TODO: Conway Era - How can we make this more composable? + certsAndMaybeScriptWits <- + sequence + [ fmap + (,mSwit) + ( firstExceptT TxCmdReadTextViewFileError . newExceptT $ + shelleyBasedEraConstraints eon $ + readFileTextEnvelope AsCertificate (File certFile) + ) + | (CertificateFile certFile, mSwit) <- certFilesAndMaybeScriptWits + ] + withdrawalsAndMaybeScriptWits <- + firstExceptT TxCmdScriptWitnessError $ + readScriptWitnessFilesTuple eon withdrawals + txMetadata <- + firstExceptT TxCmdMetadataError . newExceptT $ + readTxMetadata eon metadataSchema metadataFiles + valuesWithScriptWits <- readValueScriptWitnesses eon $ fromMaybe mempty mValue + scripts <- + firstExceptT TxCmdScriptFileError $ + mapM (readFileScriptInAnyLang . unFile) scriptFiles + txAuxScripts <- + hoistEither $ first TxCmdAuxScriptsValidationError $ validateTxAuxScripts eon scripts + + mProp <- case mUpdateProposalFile of + Just (Featured w (Just updateProposalFile)) -> + readTxUpdateProposal w updateProposalFile & firstExceptT TxCmdReadTextViewFileError + _ -> pure TxUpdateProposalNone + + requiredSigners <- + mapM (firstExceptT TxCmdRequiredSignerError . newExceptT . readRequiredSigner) reqSigners + mReturnCollateral <- forM mReturnColl $ toTxOutInShelleyBasedEra eon + + txOuts <- mapM (toTxOutInAnyEra eon) txouts + + -- Conway related + votingProceduresAndMaybeScriptWits <- + inEonForEra + (pure mempty) + (\w -> firstExceptT TxCmdVoteError $ ExceptT (readVotingProceduresFiles w voteFiles)) + era' + + proposals <- + newExceptT $ + first TxCmdProposalError + <$> readTxGovernanceActions eon proposalFiles + + -- the same collateral input can be used for several plutus scripts + let filteredTxinsc = nubOrd txinsc + + let allReferenceInputs = + getAllReferenceInputs + inputsAndMaybeScriptWits + (snd valuesWithScriptWits) + certsAndMaybeScriptWits + withdrawalsAndMaybeScriptWits + votingProceduresAndMaybeScriptWits + proposals + readOnlyReferenceInputs + + let inputsThatRequireWitnessing = [input | (input, _) <- inputsAndMaybeScriptWits] + allTxInputs = inputsThatRequireWitnessing ++ allReferenceInputs ++ filteredTxinsc + + AnyCardanoEra nodeEra <- + lift (executeLocalStateQueryExpr localNodeConnInfo Consensus.VolatileTip queryCurrentEra) + & onLeft (left . TxCmdQueryConvenienceError . AcqFailure) + & onLeft (left . TxCmdQueryConvenienceError . QceUnsupportedNtcVersion) + + (txEraUtxo, _, eraHistory, systemStart, _, _, _, featuredCurrentTreasuryValueM) <- + lift + ( executeLocalStateQueryExpr + localNodeConnInfo + Consensus.VolatileTip + (queryStateForBalancedTx nodeEra allTxInputs []) + ) + & onLeft (left . TxCmdQueryConvenienceError . AcqFailure) + & onLeft (left . TxCmdQueryConvenienceError) + + let currentTreasuryValueAndDonation = + case (treasuryDonation, unFeatured <$> featuredCurrentTreasuryValueM) of + (Nothing, _) -> Nothing -- We shouldn't specify the treasury value when no donation is being done + (Just _td, Nothing) -> Nothing -- TODO: Current treasury value couldn't be obtained but is required: we should fail suggesting that the node's version is too old + (Just td, Just ctv) -> Just (ctv, td) + + -- We need to construct the txBodycontent outside of runTxBuild + BalancedTxBody txBodyContent unsignedTx@(Exp.UnsignedTx balancedTxBody) _ _ <- + runTxBuild + eon + nodeSocketPath + networkId + mScriptValidity + inputsAndMaybeScriptWits + readOnlyReferenceInputs + filteredTxinsc + mReturnCollateral + mTotalCollateral + txOuts + changeAddresses + valuesWithScriptWits + mValidityLowerBound + mValidityUpperBound + certsAndMaybeScriptWits + withdrawalsAndMaybeScriptWits + requiredSigners + txAuxScripts + txMetadata + mProp + mOverrideWitnesses + votingProceduresAndMaybeScriptWits + proposals + currentTreasuryValueAndDonation + + -- TODO: Calculating the script cost should live as a different command. + -- Why? Because then we can simply read a txbody and figure out + -- the script cost vs having to build the tx body each time + case buildOutputOptions of + OutputScriptCostOnly fp -> do + let BuildTxWith mTxProtocolParams = txProtocolParams txBodyContent + + pparams <- pure mTxProtocolParams & onNothing (left TxCmdProtocolParametersNotPresentInTxBody) + executionUnitPrices <- + pure (getExecutionUnitPrices era' pparams) & onNothing (left TxCmdPParamExecutionUnitsNotAvailable) + + Refl <- + testEquality era' nodeEra + & hoistMaybe (TxCmdTxNodeEraMismatchError $ NodeEraMismatchError era' nodeEra) + + scriptExecUnitsMap <- + firstExceptT (TxCmdTxExecUnitsErr . AnyTxCmdTxExecUnitsErr) $ + hoistEither $ + evaluateTransactionExecutionUnitsShelley eon - nodeSocketPath - networkId - mScriptValidity - inputsAndMaybeScriptWits - readOnlyReferenceInputs - filteredTxinsc - mReturnCollateral - mTotalCollateral - txOuts - changeAddresses - valuesWithScriptWits - mValidityLowerBound - mValidityUpperBound - certsAndMaybeScriptWits - withdrawalsAndMaybeScriptWits - requiredSigners - txAuxScripts - txMetadata - mProp - mOverrideWitnesses - votingProceduresAndMaybeScriptWits - proposals - currentTreasuryValueAndDonation - - -- TODO: Calculating the script cost should live as a different command. - -- Why? Because then we can simply read a txbody and figure out - -- the script cost vs having to build the tx body each time - case buildOutputOptions of - OutputScriptCostOnly fp -> do - let BuildTxWith mTxProtocolParams = txProtocolParams txBodyContent - - pparams <- pure mTxProtocolParams & onNothing (left TxCmdProtocolParametersNotPresentInTxBody) - executionUnitPrices <- - pure (getExecutionUnitPrices era pparams) & onNothing (left TxCmdPParamExecutionUnitsNotAvailable) - - Refl <- - testEquality era nodeEra - & hoistMaybe (TxCmdTxNodeEraMismatchError $ NodeEraMismatchError era nodeEra) - - scriptExecUnitsMap <- - firstExceptT (TxCmdTxExecUnitsErr . AnyTxCmdTxExecUnitsErr) $ - hoistEither $ - evaluateTransactionExecutionUnitsShelley - eon - systemStart - (toLedgerEpochInfo eraHistory) - pparams - txEraUtxo - balancedTxBody - - let mScriptWits = forEraInEon era [] $ \sbe -> collectTxBodyScriptWitnesses sbe txBodyContent - - scriptCostOutput <- - firstExceptT TxCmdPlutusScriptCostErr $ - hoistEither $ - renderScriptCosts - txEraUtxo - executionUnitPrices - mScriptWits - scriptExecUnitsMap - liftIO $ LBS.writeFile (unFile fp) $ encodePretty scriptCostOutput - OutputTxBodyOnly fpath -> - let - noWitTx = ShelleyTx eon $ signTx useEra [] [] unsignedTx - in - lift (cardanoEraConstraints era $ writeTxFileTextEnvelopeCddl eon fpath noWitTx) - & onLeft (left . TxCmdWriteFileError) - ) - eon + systemStart + (toLedgerEpochInfo eraHistory) + pparams + txEraUtxo + (Exp.obtainCommonConstraints currentEra balancedTxBody) + + let mScriptWits = forEraInEon era' [] $ \sbe -> collectTxBodyScriptWitnesses sbe txBodyContent + + scriptCostOutput <- + firstExceptT TxCmdPlutusScriptCostErr $ + hoistEither $ + renderScriptCosts + txEraUtxo + executionUnitPrices + mScriptWits + scriptExecUnitsMap + liftIO $ LBS.writeFile (unFile fp) $ encodePretty scriptCostOutput + OutputTxBodyOnly fpath -> do + let noWitTx = ShelleyTx eon $ Exp.obtainCommonConstraints currentEra $ Exp.signTx currentEra [] [] unsignedTx + lift (writeTxFileTextEnvelopeCddl eon fpath noWitTx) + & onLeft (left . TxCmdWriteFileError) runTransactionBuildEstimateCmd :: () @@ -320,7 +314,7 @@ runTransactionBuildEstimateCmd -> ExceptT TxCmdError IO () runTransactionBuildEstimateCmd -- TODO change type Cmd.TransactionBuildEstimateCmdArgs - { eon + { currentEra , mScriptValidity , shelleyWitnesses , mByronWitnesses @@ -349,7 +343,9 @@ runTransactionBuildEstimateCmd -- TODO change type , currentTreasuryValueAndDonation , txBodyOutFile } = do - let sbe = maryEraOnwardsToShelleyBasedEra eon + let sbe = Exp.eraToSbe currentEra + meo = babbageEraOnwardsToMaryEraOnwards $ Exp.eraToBabbageEraOnwards currentEra + ledgerPParams <- firstExceptT TxCmdProtocolParamsError $ readProtocolParameters sbe protocolParamsFile inputsAndMaybeScriptWits <- @@ -386,7 +382,7 @@ runTransactionBuildEstimateCmd -- TODO change type txOuts <- mapM (toTxOutInAnyEra sbe) txouts -- the same collateral input can be used for several plutus scripts - let filteredTxinsc = toList @(Set _) $ fromList txInsCollateral + let filteredTxinsc = nubOrd txInsCollateral -- Conway related votingProceduresAndMaybeScriptWits <- @@ -454,7 +450,7 @@ runTransactionBuildEstimateCmd -- TODO change type hoistEither $ first TxCmdFeeEstimationError $ estimateBalancedTxBody - eon + meo txBodyContent ledgerPParams poolsToDeregister @@ -468,15 +464,9 @@ runTransactionBuildEstimateCmd -- TODO change type (anyAddressInShelleyBasedEra sbe changeAddr) totalUTxOValue - caseShelleyToBabbageOrConwayEraOnwards - (left . TxCmdDeprecatedEra) - ( \ConwayEraOnwardsConway -> - let e :: Era ConwayEra = useEra - noWitTx = ShelleyTx sbe $ signTx e [] [] unsignedTx - in lift (writeTxFileTextEnvelopeCddl sbe txBodyOutFile noWitTx) - & onLeft (left . TxCmdWriteFileError) - ) - sbe + let noWitTx = ShelleyTx sbe $ Exp.obtainCommonConstraints currentEra $ Exp.signTx currentEra [] [] unsignedTx + lift (writeTxFileTextEnvelopeCddl sbe txBodyOutFile noWitTx) + & onLeft (left . TxCmdWriteFileError) getPoolDeregistrationInfo :: Certificate era diff --git a/cardano-cli/src/Cardano/CLI/Helpers.hs b/cardano-cli/src/Cardano/CLI/Helpers.hs index bb29e9bee..f73f57cf8 100644 --- a/cardano-cli/src/Cardano/CLI/Helpers.hs +++ b/cardano-cli/src/Cardano/CLI/Helpers.hs @@ -14,9 +14,11 @@ module Cardano.CLI.Helpers , readCBOR , renderHelpersError , validateCBOR + , printEraDeprecationWarning ) where +import Cardano.Api (AnyCardanoEra (..), CardanoEra (ConwayEra), Eon, ToCardanoEra (..)) import qualified Cardano.Api.Ledger as L import Cardano.Chain.Block (decCBORABlockOrBoundary) @@ -42,6 +44,7 @@ import Data.Functor (void) import Data.Text (Text) import qualified Data.Text as Text import qualified Data.Text.IO as Text +import Data.Typeable (Typeable) import qualified System.Console.ANSI as ANSI import System.Console.ANSI import qualified System.Directory as IO @@ -134,3 +137,10 @@ validateCBOR cborObject bs = CBORVoteByron -> do void $ decodeCBOR bs (L.fromCBOR :: L.Decoder s Update.Vote) Right "Valid Byron vote." + +printEraDeprecationWarning :: Typeable era => MonadIO m => ToCardanoEra eon => eon era -> m () +printEraDeprecationWarning era = do + let selectedEraNum = fromEnum $ AnyCardanoEra (toCardanoEra era) + currentEraNum = fromEnum $ AnyCardanoEra ConwayEra + when (selectedEraNum < currentEraNum) $ + printWarning "Selected era is deprecated and will be removed in the future." diff --git a/cardano-cli/src/Cardano/CLI/Legacy/Commands/Transaction.hs b/cardano-cli/src/Cardano/CLI/Legacy/Commands/Transaction.hs index 8c8684cc9..bbe5fb1b2 100644 --- a/cardano-cli/src/Cardano/CLI/Legacy/Commands/Transaction.hs +++ b/cardano-cli/src/Cardano/CLI/Legacy/Commands/Transaction.hs @@ -7,6 +7,7 @@ module Cardano.CLI.Legacy.Commands.Transaction ) where +import qualified Cardano.Api.Experimental as Exp import Cardano.Api.Ledger (Coin) import Cardano.Api.Shelley @@ -54,7 +55,7 @@ data LegacyTransactionCmds | -- | Like 'TransactionBuildRaw' but without the fee, and with a change output. TransactionBuildCmd SocketPath - (EraInEon ShelleyBasedEra) + (Exp.Some Exp.Era) ConsensusModeParams NetworkId (Maybe ScriptValidity) diff --git a/cardano-cli/src/Cardano/CLI/Legacy/Options.hs b/cardano-cli/src/Cardano/CLI/Legacy/Options.hs index f5e5a22bb..67f473f57 100644 --- a/cardano-cli/src/Cardano/CLI/Legacy/Options.hs +++ b/cardano-cli/src/Cardano/CLI/Legacy/Options.hs @@ -22,6 +22,7 @@ module Cardano.CLI.Legacy.Options where import Cardano.Api hiding (QueryInShelleyBasedEra (..), parseFilePath) +import qualified Cardano.Api.Experimental as Exp import Cardano.Api.Ledger (Coin (..)) import Cardano.Api.Shelley hiding (QueryInShelleyBasedEra (..), parseFilePath) @@ -349,7 +350,7 @@ pTransaction envCli = pTransactionBuild = TransactionBuildCmd <$> pSocketPath envCli - <*> pLegacyShelleyBasedEra envCli + <*> pEra envCli <*> pConsensusModeParams <*> pNetworkId envCli <*> optional pScriptValidity @@ -1359,6 +1360,26 @@ pLegacyShelleyBasedEra envCli = , Opt.help $ "Specify the Babbage era (default)" <> deprecationText ] ] - , maybeToList $ pure <$> envCliAnyShelleyBasedEra envCli + , maybeToList $ pure <$> envCliAnyEon envCli , pure . pure $ EraInEon ShelleyBasedEraBabbage ] + +pEra :: EnvCli -> Parser (Exp.Some Exp.Era) +pEra envCli = + asum $ + mconcat + [ + [ Opt.flag' (Exp.Some Exp.BabbageEra) $ + mconcat + [ Opt.long "babbage-era" + , Opt.help "Specify the Babbage era (default)" + ] + , Opt.flag' (Exp.Some Exp.ConwayEra) $ + mconcat + [ Opt.long "conway-era" + , Opt.help "Specify the Conway era" + ] + ] + , maybeToList $ pure <$> envCliSomeEra envCli + , pure $ pure (Exp.Some Exp.BabbageEra) + ] diff --git a/cardano-cli/src/Cardano/CLI/Legacy/Run/Transaction.hs b/cardano-cli/src/Cardano/CLI/Legacy/Run/Transaction.hs index 11cb62998..fa5c78eca 100644 --- a/cardano-cli/src/Cardano/CLI/Legacy/Run/Transaction.hs +++ b/cardano-cli/src/Cardano/CLI/Legacy/Run/Transaction.hs @@ -12,10 +12,12 @@ where import Cardano.Api import qualified Cardano.Api.Byron as Api +import qualified Cardano.Api.Experimental as Exp import Cardano.Api.Ledger (Coin) import qualified Cardano.CLI.EraBased.Commands.Transaction as Cmd import Cardano.CLI.EraBased.Run.Transaction +import Cardano.CLI.Helpers (printEraDeprecationWarning) import Cardano.CLI.Legacy.Commands.Transaction import Cardano.CLI.Types.Common import Cardano.CLI.Types.Errors.TxCmdError @@ -28,7 +30,7 @@ runLegacyTransactionCmds :: LegacyTransactionCmds -> ExceptT TxCmdError IO () runLegacyTransactionCmds = \case TransactionBuildCmd mNodeSocketPath - era + era@(Exp.Some expEra) consensusModeParams nid mScriptValidity @@ -54,6 +56,7 @@ runLegacyTransactionCmds = \case mNewConstitution mTreasuryDonation outputOptions -> do + printEraDeprecationWarning $ Exp.eraToSbe expEra runLegacyTransactionBuildCmd mNodeSocketPath era @@ -83,7 +86,7 @@ runLegacyTransactionCmds = \case mTreasuryDonation outputOptions TransactionBuildRawCmd - era + era@(AnyCardanoEra cardanoEra') mScriptValidity txins readOnlyRefIns @@ -104,6 +107,7 @@ runLegacyTransactionCmds = \case mProtocolParamsFile mUpProp out -> do + printEraDeprecationWarning cardanoEra' runLegacyTransactionBuildRawCmd era mScriptValidity @@ -146,7 +150,8 @@ runLegacyTransactionCmds = \case referenceScriptSize format mOutFile - TransactionCalculateMinValueCmd (EraInEon sbe) pParamsFile txOuts' -> + TransactionCalculateMinValueCmd (EraInEon sbe) pParamsFile txOuts' -> do + printEraDeprecationWarning sbe runLegacyTransactionCalculateMinValueCmd (AnyShelleyBasedEra sbe) pParamsFile txOuts' TransactionHashScriptDataCmd scriptDataOrFile -> runLegacyTransactionHashScriptDataCmd scriptDataOrFile @@ -168,7 +173,7 @@ runLegacyTransactionCmds = \case runLegacyTransactionBuildCmd :: () => SocketPath - -> EraInEon ShelleyBasedEra + -> Exp.Some Exp.Era -> ConsensusModeParams -> NetworkId -> Maybe ScriptValidity @@ -207,7 +212,7 @@ runLegacyTransactionBuildCmd -> ExceptT TxCmdError IO () runLegacyTransactionBuildCmd socketPath - (EraInEon sbe) + (Exp.Some era) consensusModeParams nid mScriptValidity @@ -233,6 +238,7 @@ runLegacyTransactionBuildCmd proposalFiles mTreasuryDonation outputOptions = do + let sbe = Exp.eraToSbe era mUpdateProposalFile <- validateUpdateProposalFile (toCardanoEra sbe) mUpdateProposal & hoistEither @@ -242,7 +248,7 @@ runLegacyTransactionBuildCmd runTransactionBuildCmd ( Cmd.TransactionBuildCmdArgs - sbe + era socketPath consensusModeParams nid diff --git a/cardano-cli/src/Cardano/CLI/Types/Errors/TxCmdError.hs b/cardano-cli/src/Cardano/CLI/Types/Errors/TxCmdError.hs index 6e8baf1e2..e0b9d0134 100644 --- a/cardano-cli/src/Cardano/CLI/Types/Errors/TxCmdError.hs +++ b/cardano-cli/src/Cardano/CLI/Types/Errors/TxCmdError.hs @@ -84,7 +84,6 @@ data TxCmdError | TxCmdProtocolParamsConverstionError ProtocolParametersConversionError | forall era. TxCmdTxGovDuplicateVotes (TxGovDuplicateVotes era) | forall era. TxCmdFeeEstimationError (TxFeeEstimationError era) - | forall era. TxCmdDeprecatedEra (ShelleyToBabbageEra era) renderTxCmdError :: TxCmdError -> Doc ann renderTxCmdError = \case @@ -94,12 +93,6 @@ renderTxCmdError = \case prettyError voteErr TxCmdConstitutionError constErr -> pshow constErr - TxCmdDeprecatedEra era -> - mconcat - [ "The era " - , pshow (toCardanoEra era) - , " is deprecated. Please use the Conway era." - ] TxCmdProposalError propErr -> pshow propErr TxCmdReadTextViewFileError fileErr -> 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 e3a2f0eb8..66aec13e2 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help.cli @@ -823,7 +823,6 @@ Usage: cardano-cli shelley text-view decode-cbor --in-file FILEPATH Usage: cardano-cli shelley transaction ( build-raw - | build | sign | witness | assemble @@ -966,130 +965,6 @@ Usage: cardano-cli shelley transaction build-raw Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m -Usage: cardano-cli shelley transaction build --socket-path SOCKET_PATH - [--cardano-mode - [--epoch-slots SLOTS]] - ( --mainnet - | --testnet-magic NATURAL - ) - [ --script-valid - | --script-invalid - ] - [--witness-override WORD] - (--tx-in TX-IN - [ --spending-tx-in-reference TX-IN - ( --spending-plutus-script-v2 - | --spending-plutus-script-v3 - ) - ( --spending-reference-tx-in-datum-cbor-file CBOR_FILE - | --spending-reference-tx-in-datum-file JSON_FILE - | --spending-reference-tx-in-datum-value JSON_VALUE - | --spending-reference-tx-in-inline-datum-present - ) - ( --spending-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --spending-reference-tx-in-redeemer-file JSON_FILE - | --spending-reference-tx-in-redeemer-value JSON_VALUE - ) - | --simple-script-tx-in-reference TX-IN - | --tx-in-script-file FILEPATH - [ - ( --tx-in-datum-cbor-file CBOR_FILE - | --tx-in-datum-file JSON_FILE - | --tx-in-datum-value JSON_VALUE - | --tx-in-inline-datum-present - ) - ( --tx-in-redeemer-cbor-file CBOR_FILE - | --tx-in-redeemer-file JSON_FILE - | --tx-in-redeemer-value JSON_VALUE - )] - ]) - [--read-only-tx-in-reference TX-IN] - [ --required-signer FILEPATH - | --required-signer-hash HASH - ] - [--tx-in-collateral TX-IN] - [--tx-out-return-collateral ADDRESS VALUE] - [--tx-total-collateral INTEGER] - [--tx-out ADDRESS VALUE - [ --tx-out-datum-hash HASH - | --tx-out-datum-hash-cbor-file CBOR_FILE - | --tx-out-datum-hash-file JSON_FILE - | --tx-out-datum-hash-value JSON_VALUE - | --tx-out-datum-embed-cbor-file CBOR_FILE - | --tx-out-datum-embed-file JSON_FILE - | --tx-out-datum-embed-value JSON_VALUE - | --tx-out-inline-datum-cbor-file CBOR_FILE - | --tx-out-inline-datum-file JSON_FILE - | --tx-out-inline-datum-value JSON_VALUE - ] - [--tx-out-reference-script-file FILEPATH]] - --change-address ADDRESS - [--mint VALUE - ( --mint-script-file FILEPATH - [ --mint-redeemer-cbor-file CBOR_FILE - | --mint-redeemer-file JSON_FILE - | --mint-redeemer-value JSON_VALUE - ] - | --simple-minting-script-tx-in-reference TX-IN - --policy-id HASH - | --mint-tx-in-reference TX-IN - ( --mint-plutus-script-v2 - | --mint-plutus-script-v3 - ) - ( --mint-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --mint-reference-tx-in-redeemer-file JSON_FILE - | --mint-reference-tx-in-redeemer-value JSON_VALUE - ) - --policy-id HASH - )] - [--invalid-before SLOT] - [--invalid-hereafter SLOT] - [--certificate-file FILEPATH - [ --certificate-script-file FILEPATH - [ --certificate-redeemer-cbor-file CBOR_FILE - | --certificate-redeemer-file JSON_FILE - | --certificate-redeemer-value JSON_VALUE - ] - | --certificate-tx-in-reference TX-IN - ( --certificate-plutus-script-v2 - | --certificate-plutus-script-v3 - ) - ( --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --certificate-reference-tx-in-redeemer-file JSON_FILE - | --certificate-reference-tx-in-redeemer-value JSON_VALUE - ) - ]] - [--withdrawal WITHDRAWAL - [ --withdrawal-script-file FILEPATH - [ --withdrawal-redeemer-cbor-file CBOR_FILE - | --withdrawal-redeemer-file JSON_FILE - | --withdrawal-redeemer-value JSON_VALUE - ] - | --withdrawal-tx-in-reference TX-IN - ( --withdrawal-plutus-script-v2 - | --withdrawal-plutus-script-v3 - ) - ( --withdrawal-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --withdrawal-reference-tx-in-redeemer-file JSON_FILE - | --withdrawal-reference-tx-in-redeemer-value JSON_VALUE - ) - ]] - [ --json-metadata-no-schema - | --json-metadata-detailed-schema - ] - [--auxiliary-script-file FILEPATH] - [ --metadata-json-file FILEPATH - | --metadata-cbor-file FILEPATH - ] - [--update-proposal-file FILEPATH] - ( --out-file FILEPATH - | --calculate-plutus-script-cost FILEPATH - ) - - Build a balanced transaction (automatically calculates fees) - - Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m - Usage: cardano-cli shelley transaction sign ( --tx-body-file FILEPATH | --tx-file FILEPATH @@ -2018,7 +1893,6 @@ Usage: cardano-cli allegra text-view decode-cbor --in-file FILEPATH Usage: cardano-cli allegra transaction ( build-raw - | build | sign | witness | assemble @@ -2161,130 +2035,6 @@ Usage: cardano-cli allegra transaction build-raw Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m -Usage: cardano-cli allegra transaction build --socket-path SOCKET_PATH - [--cardano-mode - [--epoch-slots SLOTS]] - ( --mainnet - | --testnet-magic NATURAL - ) - [ --script-valid - | --script-invalid - ] - [--witness-override WORD] - (--tx-in TX-IN - [ --spending-tx-in-reference TX-IN - ( --spending-plutus-script-v2 - | --spending-plutus-script-v3 - ) - ( --spending-reference-tx-in-datum-cbor-file CBOR_FILE - | --spending-reference-tx-in-datum-file JSON_FILE - | --spending-reference-tx-in-datum-value JSON_VALUE - | --spending-reference-tx-in-inline-datum-present - ) - ( --spending-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --spending-reference-tx-in-redeemer-file JSON_FILE - | --spending-reference-tx-in-redeemer-value JSON_VALUE - ) - | --simple-script-tx-in-reference TX-IN - | --tx-in-script-file FILEPATH - [ - ( --tx-in-datum-cbor-file CBOR_FILE - | --tx-in-datum-file JSON_FILE - | --tx-in-datum-value JSON_VALUE - | --tx-in-inline-datum-present - ) - ( --tx-in-redeemer-cbor-file CBOR_FILE - | --tx-in-redeemer-file JSON_FILE - | --tx-in-redeemer-value JSON_VALUE - )] - ]) - [--read-only-tx-in-reference TX-IN] - [ --required-signer FILEPATH - | --required-signer-hash HASH - ] - [--tx-in-collateral TX-IN] - [--tx-out-return-collateral ADDRESS VALUE] - [--tx-total-collateral INTEGER] - [--tx-out ADDRESS VALUE - [ --tx-out-datum-hash HASH - | --tx-out-datum-hash-cbor-file CBOR_FILE - | --tx-out-datum-hash-file JSON_FILE - | --tx-out-datum-hash-value JSON_VALUE - | --tx-out-datum-embed-cbor-file CBOR_FILE - | --tx-out-datum-embed-file JSON_FILE - | --tx-out-datum-embed-value JSON_VALUE - | --tx-out-inline-datum-cbor-file CBOR_FILE - | --tx-out-inline-datum-file JSON_FILE - | --tx-out-inline-datum-value JSON_VALUE - ] - [--tx-out-reference-script-file FILEPATH]] - --change-address ADDRESS - [--mint VALUE - ( --mint-script-file FILEPATH - [ --mint-redeemer-cbor-file CBOR_FILE - | --mint-redeemer-file JSON_FILE - | --mint-redeemer-value JSON_VALUE - ] - | --simple-minting-script-tx-in-reference TX-IN - --policy-id HASH - | --mint-tx-in-reference TX-IN - ( --mint-plutus-script-v2 - | --mint-plutus-script-v3 - ) - ( --mint-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --mint-reference-tx-in-redeemer-file JSON_FILE - | --mint-reference-tx-in-redeemer-value JSON_VALUE - ) - --policy-id HASH - )] - [--invalid-before SLOT] - [--invalid-hereafter SLOT] - [--certificate-file FILEPATH - [ --certificate-script-file FILEPATH - [ --certificate-redeemer-cbor-file CBOR_FILE - | --certificate-redeemer-file JSON_FILE - | --certificate-redeemer-value JSON_VALUE - ] - | --certificate-tx-in-reference TX-IN - ( --certificate-plutus-script-v2 - | --certificate-plutus-script-v3 - ) - ( --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --certificate-reference-tx-in-redeemer-file JSON_FILE - | --certificate-reference-tx-in-redeemer-value JSON_VALUE - ) - ]] - [--withdrawal WITHDRAWAL - [ --withdrawal-script-file FILEPATH - [ --withdrawal-redeemer-cbor-file CBOR_FILE - | --withdrawal-redeemer-file JSON_FILE - | --withdrawal-redeemer-value JSON_VALUE - ] - | --withdrawal-tx-in-reference TX-IN - ( --withdrawal-plutus-script-v2 - | --withdrawal-plutus-script-v3 - ) - ( --withdrawal-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --withdrawal-reference-tx-in-redeemer-file JSON_FILE - | --withdrawal-reference-tx-in-redeemer-value JSON_VALUE - ) - ]] - [ --json-metadata-no-schema - | --json-metadata-detailed-schema - ] - [--auxiliary-script-file FILEPATH] - [ --metadata-json-file FILEPATH - | --metadata-cbor-file FILEPATH - ] - [--update-proposal-file FILEPATH] - ( --out-file FILEPATH - | --calculate-plutus-script-cost FILEPATH - ) - - Build a balanced transaction (automatically calculates fees) - - Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m - Usage: cardano-cli allegra transaction sign ( --tx-body-file FILEPATH | --tx-file FILEPATH @@ -3205,8 +2955,6 @@ Usage: cardano-cli mary text-view decode-cbor --in-file FILEPATH Usage: cardano-cli mary transaction ( build-raw - | build - | build-estimate | sign | witness | assemble @@ -3349,261 +3097,6 @@ Usage: cardano-cli mary transaction build-raw Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m -Usage: cardano-cli mary transaction build --socket-path SOCKET_PATH - [--cardano-mode - [--epoch-slots SLOTS]] - ( --mainnet - | --testnet-magic NATURAL - ) - [--script-valid | --script-invalid] - [--witness-override WORD] - (--tx-in TX-IN - [ --spending-tx-in-reference TX-IN - ( --spending-plutus-script-v2 - | --spending-plutus-script-v3 - ) - ( --spending-reference-tx-in-datum-cbor-file CBOR_FILE - | --spending-reference-tx-in-datum-file JSON_FILE - | --spending-reference-tx-in-datum-value JSON_VALUE - | --spending-reference-tx-in-inline-datum-present - ) - ( --spending-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --spending-reference-tx-in-redeemer-file JSON_FILE - | --spending-reference-tx-in-redeemer-value JSON_VALUE - ) - | --simple-script-tx-in-reference TX-IN - | --tx-in-script-file FILEPATH - [ - ( --tx-in-datum-cbor-file CBOR_FILE - | --tx-in-datum-file JSON_FILE - | --tx-in-datum-value JSON_VALUE - | --tx-in-inline-datum-present - ) - ( --tx-in-redeemer-cbor-file CBOR_FILE - | --tx-in-redeemer-file JSON_FILE - | --tx-in-redeemer-value JSON_VALUE - )] - ]) - [--read-only-tx-in-reference TX-IN] - [ --required-signer FILEPATH - | --required-signer-hash HASH - ] - [--tx-in-collateral TX-IN] - [--tx-out-return-collateral ADDRESS VALUE] - [--tx-total-collateral INTEGER] - [--tx-out ADDRESS VALUE - [ --tx-out-datum-hash HASH - | --tx-out-datum-hash-cbor-file CBOR_FILE - | --tx-out-datum-hash-file JSON_FILE - | --tx-out-datum-hash-value JSON_VALUE - | --tx-out-datum-embed-cbor-file CBOR_FILE - | --tx-out-datum-embed-file JSON_FILE - | --tx-out-datum-embed-value JSON_VALUE - | --tx-out-inline-datum-cbor-file CBOR_FILE - | --tx-out-inline-datum-file JSON_FILE - | --tx-out-inline-datum-value JSON_VALUE - ] - [--tx-out-reference-script-file FILEPATH]] - --change-address ADDRESS - [--mint VALUE - ( --mint-script-file FILEPATH - [ --mint-redeemer-cbor-file CBOR_FILE - | --mint-redeemer-file JSON_FILE - | --mint-redeemer-value JSON_VALUE - ] - | --simple-minting-script-tx-in-reference TX-IN - --policy-id HASH - | --mint-tx-in-reference TX-IN - ( --mint-plutus-script-v2 - | --mint-plutus-script-v3 - ) - ( --mint-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --mint-reference-tx-in-redeemer-file JSON_FILE - | --mint-reference-tx-in-redeemer-value JSON_VALUE - ) - --policy-id HASH - )] - [--invalid-before SLOT] - [--invalid-hereafter SLOT] - [--certificate-file FILEPATH - [ --certificate-script-file FILEPATH - [ --certificate-redeemer-cbor-file CBOR_FILE - | --certificate-redeemer-file JSON_FILE - | --certificate-redeemer-value JSON_VALUE - ] - | --certificate-tx-in-reference TX-IN - ( --certificate-plutus-script-v2 - | --certificate-plutus-script-v3 - ) - ( --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --certificate-reference-tx-in-redeemer-file JSON_FILE - | --certificate-reference-tx-in-redeemer-value JSON_VALUE - ) - ]] - [--withdrawal WITHDRAWAL - [ --withdrawal-script-file FILEPATH - [ --withdrawal-redeemer-cbor-file CBOR_FILE - | --withdrawal-redeemer-file JSON_FILE - | --withdrawal-redeemer-value JSON_VALUE - ] - | --withdrawal-tx-in-reference TX-IN - ( --withdrawal-plutus-script-v2 - | --withdrawal-plutus-script-v3 - ) - ( --withdrawal-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --withdrawal-reference-tx-in-redeemer-file JSON_FILE - | --withdrawal-reference-tx-in-redeemer-value JSON_VALUE - ) - ]] - [ --json-metadata-no-schema - | --json-metadata-detailed-schema - ] - [--auxiliary-script-file FILEPATH] - [ --metadata-json-file FILEPATH - | --metadata-cbor-file FILEPATH - ] - [--update-proposal-file FILEPATH] - ( --out-file FILEPATH - | --calculate-plutus-script-cost FILEPATH - ) - - Build a balanced transaction (automatically calculates fees) - - Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m - -Usage: cardano-cli mary transaction build-estimate - [ --script-valid - | --script-invalid - ] - --shelley-key-witnesses INT - [--byron-key-witnesses Int] - --protocol-params-file FILEPATH - --total-utxo-value VALUE - (--tx-in TX-IN - [ --spending-tx-in-reference TX-IN - ( --spending-plutus-script-v2 - | --spending-plutus-script-v3 - ) - ( --spending-reference-tx-in-datum-cbor-file CBOR_FILE - | --spending-reference-tx-in-datum-file JSON_FILE - | --spending-reference-tx-in-datum-value JSON_VALUE - | --spending-reference-tx-in-inline-datum-present - ) - ( --spending-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --spending-reference-tx-in-redeemer-file JSON_FILE - | --spending-reference-tx-in-redeemer-value JSON_VALUE - ) - --spending-reference-tx-in-execution-units (INT, INT) - | --simple-script-tx-in-reference TX-IN - | --tx-in-script-file FILEPATH - [ - ( --tx-in-datum-cbor-file CBOR_FILE - | --tx-in-datum-file JSON_FILE - | --tx-in-datum-value JSON_VALUE - | --tx-in-inline-datum-present - ) - ( --tx-in-redeemer-cbor-file CBOR_FILE - | --tx-in-redeemer-file JSON_FILE - | --tx-in-redeemer-value JSON_VALUE - ) - --tx-in-execution-units (INT, INT)] - ]) - [--read-only-tx-in-reference TX-IN] - [ --required-signer FILEPATH - | --required-signer-hash HASH - ] - [--tx-in-collateral TX-IN] - [--tx-out-return-collateral ADDRESS VALUE] - [--tx-out ADDRESS VALUE - [ --tx-out-datum-hash HASH - | --tx-out-datum-hash-cbor-file CBOR_FILE - | --tx-out-datum-hash-file JSON_FILE - | --tx-out-datum-hash-value JSON_VALUE - | --tx-out-datum-embed-cbor-file CBOR_FILE - | --tx-out-datum-embed-file JSON_FILE - | --tx-out-datum-embed-value JSON_VALUE - | --tx-out-inline-datum-cbor-file CBOR_FILE - | --tx-out-inline-datum-file JSON_FILE - | --tx-out-inline-datum-value JSON_VALUE - ] - [--tx-out-reference-script-file FILEPATH]] - --change-address ADDRESS - [--mint VALUE - ( --mint-script-file FILEPATH - [ - ( --mint-redeemer-cbor-file CBOR_FILE - | --mint-redeemer-file JSON_FILE - | --mint-redeemer-value JSON_VALUE - ) - --mint-execution-units (INT, INT)] - | --simple-minting-script-tx-in-reference TX-IN - --policy-id HASH - | --mint-tx-in-reference TX-IN - ( --mint-plutus-script-v2 - | --mint-plutus-script-v3 - ) - ( --mint-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --mint-reference-tx-in-redeemer-file JSON_FILE - | --mint-reference-tx-in-redeemer-value JSON_VALUE - ) - --mint-reference-tx-in-execution-units (INT, INT) - --policy-id HASH - )] - [--invalid-before SLOT] - [--invalid-hereafter SLOT] - [ - --certificate-file FILEPATH - [ --certificate-script-file FILEPATH - [ - ( --certificate-redeemer-cbor-file CBOR_FILE - | --certificate-redeemer-file JSON_FILE - | --certificate-redeemer-value JSON_VALUE - ) - --certificate-execution-units (INT, INT)] - | --certificate-tx-in-reference TX-IN - ( --certificate-plutus-script-v2 - | --certificate-plutus-script-v3 - ) - ( --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --certificate-reference-tx-in-redeemer-file JSON_FILE - | --certificate-reference-tx-in-redeemer-value JSON_VALUE - ) - --certificate-reference-tx-in-execution-units (INT, INT) - ]] - [--withdrawal WITHDRAWAL - [ --withdrawal-script-file FILEPATH - [ - ( --withdrawal-redeemer-cbor-file CBOR_FILE - | --withdrawal-redeemer-file JSON_FILE - | --withdrawal-redeemer-value JSON_VALUE - ) - --withdrawal-execution-units (INT, INT)] - | --withdrawal-tx-in-reference TX-IN - ( --withdrawal-plutus-script-v2 - | --withdrawal-plutus-script-v3 - ) - ( --withdrawal-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --withdrawal-reference-tx-in-redeemer-file JSON_FILE - | --withdrawal-reference-tx-in-redeemer-value JSON_VALUE - ) - --withdrawal-reference-tx-in-execution-units (INT, INT) - ]] - [--tx-total-collateral INTEGER] - [--reference-script-size NATURAL] - [ --json-metadata-no-schema - | --json-metadata-detailed-schema - ] - [--auxiliary-script-file FILEPATH] - [ --metadata-json-file FILEPATH - | --metadata-cbor-file FILEPATH - ] - [--update-proposal-file FILEPATH] - --out-file FILEPATH - - Build a balanced transaction without access to a live node (automatically estimates fees) - - Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m - Usage: cardano-cli mary transaction sign ( --tx-body-file FILEPATH | --tx-file FILEPATH @@ -4535,8 +4028,6 @@ Usage: cardano-cli alonzo text-view decode-cbor --in-file FILEPATH Usage: cardano-cli alonzo transaction ( build-raw - | build - | build-estimate | sign | witness | assemble @@ -4549,390 +4040,133 @@ Usage: cardano-cli alonzo transaction | view ) - Transaction commands. - -Usage: cardano-cli alonzo transaction build-raw - [ --script-valid - | --script-invalid - ] - (--tx-in TX-IN - [ --spending-tx-in-reference TX-IN - ( --spending-plutus-script-v2 - | --spending-plutus-script-v3 - ) - ( --spending-reference-tx-in-datum-cbor-file CBOR_FILE - | --spending-reference-tx-in-datum-file JSON_FILE - | --spending-reference-tx-in-datum-value JSON_VALUE - | --spending-reference-tx-in-inline-datum-present - ) - ( --spending-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --spending-reference-tx-in-redeemer-file JSON_FILE - | --spending-reference-tx-in-redeemer-value JSON_VALUE - ) - --spending-reference-tx-in-execution-units (INT, INT) - | --simple-script-tx-in-reference TX-IN - | --tx-in-script-file FILEPATH - [ - ( --tx-in-datum-cbor-file CBOR_FILE - | --tx-in-datum-file JSON_FILE - | --tx-in-datum-value JSON_VALUE - | --tx-in-inline-datum-present - ) - ( --tx-in-redeemer-cbor-file CBOR_FILE - | --tx-in-redeemer-file JSON_FILE - | --tx-in-redeemer-value JSON_VALUE - ) - --tx-in-execution-units (INT, INT)] - ]) - [--read-only-tx-in-reference TX-IN] - [--tx-in-collateral TX-IN] - [--tx-out-return-collateral ADDRESS VALUE] - [--tx-total-collateral INTEGER] - [ --required-signer FILEPATH - | --required-signer-hash HASH - ] - [--tx-out ADDRESS VALUE - [ --tx-out-datum-hash HASH - | --tx-out-datum-hash-cbor-file CBOR_FILE - | --tx-out-datum-hash-file JSON_FILE - | --tx-out-datum-hash-value JSON_VALUE - | --tx-out-datum-embed-cbor-file CBOR_FILE - | --tx-out-datum-embed-file JSON_FILE - | --tx-out-datum-embed-value JSON_VALUE - | --tx-out-inline-datum-cbor-file CBOR_FILE - | --tx-out-inline-datum-file JSON_FILE - | --tx-out-inline-datum-value JSON_VALUE - ] - [--tx-out-reference-script-file FILEPATH]] - [--mint VALUE - ( --mint-script-file FILEPATH - [ - ( --mint-redeemer-cbor-file CBOR_FILE - | --mint-redeemer-file JSON_FILE - | --mint-redeemer-value JSON_VALUE - ) - --mint-execution-units (INT, INT)] - | --simple-minting-script-tx-in-reference TX-IN - --policy-id HASH - | --mint-tx-in-reference TX-IN - ( --mint-plutus-script-v2 - | --mint-plutus-script-v3 - ) - ( --mint-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --mint-reference-tx-in-redeemer-file JSON_FILE - | --mint-reference-tx-in-redeemer-value JSON_VALUE - ) - --mint-reference-tx-in-execution-units (INT, INT) - --policy-id HASH - )] - [--invalid-before SLOT] - [--invalid-hereafter SLOT] - --fee LOVELACE - [--certificate-file FILEPATH - [ --certificate-script-file FILEPATH - [ - ( --certificate-redeemer-cbor-file CBOR_FILE - | --certificate-redeemer-file JSON_FILE - | --certificate-redeemer-value JSON_VALUE - ) - --certificate-execution-units (INT, INT)] - | --certificate-tx-in-reference TX-IN - ( --certificate-plutus-script-v2 - | --certificate-plutus-script-v3 - ) - ( --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --certificate-reference-tx-in-redeemer-file JSON_FILE - | --certificate-reference-tx-in-redeemer-value JSON_VALUE - ) - --certificate-reference-tx-in-execution-units (INT, INT) - ]] - [--withdrawal WITHDRAWAL - [ --withdrawal-script-file FILEPATH - [ - ( --withdrawal-redeemer-cbor-file CBOR_FILE - | --withdrawal-redeemer-file JSON_FILE - | --withdrawal-redeemer-value JSON_VALUE - ) - --withdrawal-execution-units (INT, INT)] - | --withdrawal-tx-in-reference TX-IN - ( --withdrawal-plutus-script-v2 - | --withdrawal-plutus-script-v3 - ) - ( --withdrawal-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --withdrawal-reference-tx-in-redeemer-file JSON_FILE - | --withdrawal-reference-tx-in-redeemer-value JSON_VALUE - ) - --withdrawal-reference-tx-in-execution-units (INT, INT) - ]] - [ --json-metadata-no-schema - | --json-metadata-detailed-schema - ] - [--auxiliary-script-file FILEPATH] - [ --metadata-json-file FILEPATH - | --metadata-cbor-file FILEPATH - ] - [--protocol-params-file FILEPATH] - [--update-proposal-file FILEPATH] - --out-file FILEPATH - - Build a transaction (low-level, inconvenient) - - Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m - -Usage: cardano-cli alonzo transaction build --socket-path SOCKET_PATH - [--cardano-mode - [--epoch-slots SLOTS]] - ( --mainnet - | --testnet-magic NATURAL - ) - [ --script-valid - | --script-invalid - ] - [--witness-override WORD] - (--tx-in TX-IN - [ --spending-tx-in-reference TX-IN - ( --spending-plutus-script-v2 - | --spending-plutus-script-v3 - ) - ( --spending-reference-tx-in-datum-cbor-file CBOR_FILE - | --spending-reference-tx-in-datum-file JSON_FILE - | --spending-reference-tx-in-datum-value JSON_VALUE - | --spending-reference-tx-in-inline-datum-present - ) - ( --spending-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --spending-reference-tx-in-redeemer-file JSON_FILE - | --spending-reference-tx-in-redeemer-value JSON_VALUE - ) - | --simple-script-tx-in-reference TX-IN - | --tx-in-script-file FILEPATH - [ - ( --tx-in-datum-cbor-file CBOR_FILE - | --tx-in-datum-file JSON_FILE - | --tx-in-datum-value JSON_VALUE - | --tx-in-inline-datum-present - ) - ( --tx-in-redeemer-cbor-file CBOR_FILE - | --tx-in-redeemer-file JSON_FILE - | --tx-in-redeemer-value JSON_VALUE - )] - ]) - [--read-only-tx-in-reference TX-IN] - [ --required-signer FILEPATH - | --required-signer-hash HASH - ] - [--tx-in-collateral TX-IN] - [--tx-out-return-collateral ADDRESS VALUE] - [--tx-total-collateral INTEGER] - [--tx-out ADDRESS VALUE - [ --tx-out-datum-hash HASH - | --tx-out-datum-hash-cbor-file CBOR_FILE - | --tx-out-datum-hash-file JSON_FILE - | --tx-out-datum-hash-value JSON_VALUE - | --tx-out-datum-embed-cbor-file CBOR_FILE - | --tx-out-datum-embed-file JSON_FILE - | --tx-out-datum-embed-value JSON_VALUE - | --tx-out-inline-datum-cbor-file CBOR_FILE - | --tx-out-inline-datum-file JSON_FILE - | --tx-out-inline-datum-value JSON_VALUE - ] - [--tx-out-reference-script-file FILEPATH]] - --change-address ADDRESS - [--mint VALUE - ( --mint-script-file FILEPATH - [ --mint-redeemer-cbor-file CBOR_FILE - | --mint-redeemer-file JSON_FILE - | --mint-redeemer-value JSON_VALUE - ] - | --simple-minting-script-tx-in-reference TX-IN - --policy-id HASH - | --mint-tx-in-reference TX-IN - ( --mint-plutus-script-v2 - | --mint-plutus-script-v3 - ) - ( --mint-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --mint-reference-tx-in-redeemer-file JSON_FILE - | --mint-reference-tx-in-redeemer-value JSON_VALUE - ) - --policy-id HASH - )] - [--invalid-before SLOT] - [--invalid-hereafter SLOT] - [--certificate-file FILEPATH - [ --certificate-script-file FILEPATH - [ --certificate-redeemer-cbor-file CBOR_FILE - | --certificate-redeemer-file JSON_FILE - | --certificate-redeemer-value JSON_VALUE - ] - | --certificate-tx-in-reference TX-IN - ( --certificate-plutus-script-v2 - | --certificate-plutus-script-v3 - ) - ( --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --certificate-reference-tx-in-redeemer-file JSON_FILE - | --certificate-reference-tx-in-redeemer-value JSON_VALUE - ) - ]] - [--withdrawal WITHDRAWAL - [ --withdrawal-script-file FILEPATH - [ --withdrawal-redeemer-cbor-file CBOR_FILE - | --withdrawal-redeemer-file JSON_FILE - | --withdrawal-redeemer-value JSON_VALUE - ] - | --withdrawal-tx-in-reference TX-IN - ( --withdrawal-plutus-script-v2 - | --withdrawal-plutus-script-v3 - ) - ( --withdrawal-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --withdrawal-reference-tx-in-redeemer-file JSON_FILE - | --withdrawal-reference-tx-in-redeemer-value JSON_VALUE - ) - ]] - [ --json-metadata-no-schema - | --json-metadata-detailed-schema - ] - [--auxiliary-script-file FILEPATH] - [ --metadata-json-file FILEPATH - | --metadata-cbor-file FILEPATH - ] - [--update-proposal-file FILEPATH] - ( --out-file FILEPATH - | --calculate-plutus-script-cost FILEPATH - ) - - Build a balanced transaction (automatically calculates fees) - - Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m + Transaction commands. -Usage: cardano-cli alonzo transaction build-estimate - [ --script-valid - | --script-invalid - ] - --shelley-key-witnesses INT - [--byron-key-witnesses Int] - --protocol-params-file FILEPATH - --total-utxo-value VALUE - (--tx-in TX-IN - [ --spending-tx-in-reference TX-IN - ( --spending-plutus-script-v2 - | --spending-plutus-script-v3 - ) - ( --spending-reference-tx-in-datum-cbor-file CBOR_FILE - | --spending-reference-tx-in-datum-file JSON_FILE - | --spending-reference-tx-in-datum-value JSON_VALUE - | --spending-reference-tx-in-inline-datum-present - ) - ( --spending-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --spending-reference-tx-in-redeemer-file JSON_FILE - | --spending-reference-tx-in-redeemer-value JSON_VALUE - ) - --spending-reference-tx-in-execution-units (INT, INT) - | --simple-script-tx-in-reference TX-IN - | --tx-in-script-file FILEPATH - [ - ( --tx-in-datum-cbor-file CBOR_FILE - | --tx-in-datum-file JSON_FILE - | --tx-in-datum-value JSON_VALUE - | --tx-in-inline-datum-present - ) - ( --tx-in-redeemer-cbor-file CBOR_FILE - | --tx-in-redeemer-file JSON_FILE - | --tx-in-redeemer-value JSON_VALUE - ) - --tx-in-execution-units (INT, INT)] - ]) - [--read-only-tx-in-reference TX-IN] - [ --required-signer FILEPATH - | --required-signer-hash HASH - ] - [--tx-in-collateral TX-IN] - [--tx-out-return-collateral ADDRESS VALUE] - [--tx-out ADDRESS VALUE - [ --tx-out-datum-hash HASH - | --tx-out-datum-hash-cbor-file CBOR_FILE - | --tx-out-datum-hash-file JSON_FILE - | --tx-out-datum-hash-value JSON_VALUE - | --tx-out-datum-embed-cbor-file CBOR_FILE - | --tx-out-datum-embed-file JSON_FILE - | --tx-out-datum-embed-value JSON_VALUE - | --tx-out-inline-datum-cbor-file CBOR_FILE - | --tx-out-inline-datum-file JSON_FILE - | --tx-out-inline-datum-value JSON_VALUE - ] - [--tx-out-reference-script-file FILEPATH]] - --change-address ADDRESS - [--mint VALUE - ( --mint-script-file FILEPATH - [ - ( --mint-redeemer-cbor-file CBOR_FILE - | --mint-redeemer-file JSON_FILE - | --mint-redeemer-value JSON_VALUE - ) - --mint-execution-units (INT, INT)] - | --simple-minting-script-tx-in-reference TX-IN - --policy-id HASH - | --mint-tx-in-reference TX-IN - ( --mint-plutus-script-v2 - | --mint-plutus-script-v3 - ) - ( --mint-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --mint-reference-tx-in-redeemer-file JSON_FILE - | --mint-reference-tx-in-redeemer-value JSON_VALUE - ) - --mint-reference-tx-in-execution-units (INT, INT) - --policy-id HASH - )] - [--invalid-before SLOT] - [--invalid-hereafter SLOT] - [ - --certificate-file FILEPATH - [ --certificate-script-file FILEPATH - [ - ( --certificate-redeemer-cbor-file CBOR_FILE - | --certificate-redeemer-file JSON_FILE - | --certificate-redeemer-value JSON_VALUE - ) - --certificate-execution-units (INT, INT)] - | --certificate-tx-in-reference TX-IN - ( --certificate-plutus-script-v2 - | --certificate-plutus-script-v3 - ) - ( --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --certificate-reference-tx-in-redeemer-file JSON_FILE - | --certificate-reference-tx-in-redeemer-value JSON_VALUE - ) - --certificate-reference-tx-in-execution-units (INT, INT) - ]] - [--withdrawal WITHDRAWAL - [ --withdrawal-script-file FILEPATH - [ - ( --withdrawal-redeemer-cbor-file CBOR_FILE - | --withdrawal-redeemer-file JSON_FILE - | --withdrawal-redeemer-value JSON_VALUE - ) - --withdrawal-execution-units (INT, INT)] - | --withdrawal-tx-in-reference TX-IN - ( --withdrawal-plutus-script-v2 - | --withdrawal-plutus-script-v3 - ) - ( --withdrawal-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --withdrawal-reference-tx-in-redeemer-file JSON_FILE - | --withdrawal-reference-tx-in-redeemer-value JSON_VALUE - ) - --withdrawal-reference-tx-in-execution-units (INT, INT) - ]] - [--tx-total-collateral INTEGER] - [--reference-script-size NATURAL] - [ --json-metadata-no-schema - | --json-metadata-detailed-schema - ] - [--auxiliary-script-file FILEPATH] - [ --metadata-json-file FILEPATH - | --metadata-cbor-file FILEPATH - ] - [--update-proposal-file FILEPATH] - --out-file FILEPATH +Usage: cardano-cli alonzo transaction build-raw + [ --script-valid + | --script-invalid + ] + (--tx-in TX-IN + [ --spending-tx-in-reference TX-IN + ( --spending-plutus-script-v2 + | --spending-plutus-script-v3 + ) + ( --spending-reference-tx-in-datum-cbor-file CBOR_FILE + | --spending-reference-tx-in-datum-file JSON_FILE + | --spending-reference-tx-in-datum-value JSON_VALUE + | --spending-reference-tx-in-inline-datum-present + ) + ( --spending-reference-tx-in-redeemer-cbor-file CBOR_FILE + | --spending-reference-tx-in-redeemer-file JSON_FILE + | --spending-reference-tx-in-redeemer-value JSON_VALUE + ) + --spending-reference-tx-in-execution-units (INT, INT) + | --simple-script-tx-in-reference TX-IN + | --tx-in-script-file FILEPATH + [ + ( --tx-in-datum-cbor-file CBOR_FILE + | --tx-in-datum-file JSON_FILE + | --tx-in-datum-value JSON_VALUE + | --tx-in-inline-datum-present + ) + ( --tx-in-redeemer-cbor-file CBOR_FILE + | --tx-in-redeemer-file JSON_FILE + | --tx-in-redeemer-value JSON_VALUE + ) + --tx-in-execution-units (INT, INT)] + ]) + [--read-only-tx-in-reference TX-IN] + [--tx-in-collateral TX-IN] + [--tx-out-return-collateral ADDRESS VALUE] + [--tx-total-collateral INTEGER] + [ --required-signer FILEPATH + | --required-signer-hash HASH + ] + [--tx-out ADDRESS VALUE + [ --tx-out-datum-hash HASH + | --tx-out-datum-hash-cbor-file CBOR_FILE + | --tx-out-datum-hash-file JSON_FILE + | --tx-out-datum-hash-value JSON_VALUE + | --tx-out-datum-embed-cbor-file CBOR_FILE + | --tx-out-datum-embed-file JSON_FILE + | --tx-out-datum-embed-value JSON_VALUE + | --tx-out-inline-datum-cbor-file CBOR_FILE + | --tx-out-inline-datum-file JSON_FILE + | --tx-out-inline-datum-value JSON_VALUE + ] + [--tx-out-reference-script-file FILEPATH]] + [--mint VALUE + ( --mint-script-file FILEPATH + [ + ( --mint-redeemer-cbor-file CBOR_FILE + | --mint-redeemer-file JSON_FILE + | --mint-redeemer-value JSON_VALUE + ) + --mint-execution-units (INT, INT)] + | --simple-minting-script-tx-in-reference TX-IN + --policy-id HASH + | --mint-tx-in-reference TX-IN + ( --mint-plutus-script-v2 + | --mint-plutus-script-v3 + ) + ( --mint-reference-tx-in-redeemer-cbor-file CBOR_FILE + | --mint-reference-tx-in-redeemer-file JSON_FILE + | --mint-reference-tx-in-redeemer-value JSON_VALUE + ) + --mint-reference-tx-in-execution-units (INT, INT) + --policy-id HASH + )] + [--invalid-before SLOT] + [--invalid-hereafter SLOT] + --fee LOVELACE + [--certificate-file FILEPATH + [ --certificate-script-file FILEPATH + [ + ( --certificate-redeemer-cbor-file CBOR_FILE + | --certificate-redeemer-file JSON_FILE + | --certificate-redeemer-value JSON_VALUE + ) + --certificate-execution-units (INT, INT)] + | --certificate-tx-in-reference TX-IN + ( --certificate-plutus-script-v2 + | --certificate-plutus-script-v3 + ) + ( --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE + | --certificate-reference-tx-in-redeemer-file JSON_FILE + | --certificate-reference-tx-in-redeemer-value JSON_VALUE + ) + --certificate-reference-tx-in-execution-units (INT, INT) + ]] + [--withdrawal WITHDRAWAL + [ --withdrawal-script-file FILEPATH + [ + ( --withdrawal-redeemer-cbor-file CBOR_FILE + | --withdrawal-redeemer-file JSON_FILE + | --withdrawal-redeemer-value JSON_VALUE + ) + --withdrawal-execution-units (INT, INT)] + | --withdrawal-tx-in-reference TX-IN + ( --withdrawal-plutus-script-v2 + | --withdrawal-plutus-script-v3 + ) + ( --withdrawal-reference-tx-in-redeemer-cbor-file CBOR_FILE + | --withdrawal-reference-tx-in-redeemer-file JSON_FILE + | --withdrawal-reference-tx-in-redeemer-value JSON_VALUE + ) + --withdrawal-reference-tx-in-execution-units (INT, INT) + ]] + [ --json-metadata-no-schema + | --json-metadata-detailed-schema + ] + [--auxiliary-script-file FILEPATH] + [ --metadata-json-file FILEPATH + | --metadata-cbor-file FILEPATH + ] + [--protocol-params-file FILEPATH] + [--update-proposal-file FILEPATH] + --out-file FILEPATH - Build a balanced transaction without access to a live node (automatically estimates fees) + Build a transaction (low-level, inconvenient) Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m @@ -10477,12 +9711,7 @@ Usage: cardano-cli legacy transaction build-raw Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m Usage: cardano-cli legacy transaction build --socket-path SOCKET_PATH - [ --shelley-era - | --allegra-era - | --mary-era - | --alonzo-era - | --babbage-era - ] + [--babbage-era | --conway-era] [--cardano-mode [--epoch-slots SLOTS]] ( --mainnet @@ -11753,12 +10982,7 @@ Usage: cardano-cli transaction build-raw Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m Usage: cardano-cli transaction build --socket-path SOCKET_PATH - [ --shelley-era - | --allegra-era - | --mary-era - | --alonzo-era - | --babbage-era - ] + [--babbage-era | --conway-era] [--cardano-mode [--epoch-slots SLOTS]] (--mainnet | --testnet-magic NATURAL) [--script-valid | --script-invalid] diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_transaction.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_transaction.cli index 7bfcf3193..dd81c9cf3 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_transaction.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_transaction.cli @@ -1,6 +1,5 @@ Usage: cardano-cli allegra transaction ( build-raw - | build | sign | witness | assemble @@ -21,9 +20,6 @@ Available options: Available commands: build-raw Build a transaction (low-level, inconvenient) - Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m - build Build a balanced transaction (automatically calculates fees) - Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m sign Sign a transaction witness Create a transaction witness diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_transaction_build.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_transaction_build.cli deleted file mode 100644 index 4544e07c2..000000000 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_transaction_build.cli +++ /dev/null @@ -1,396 +0,0 @@ -Usage: cardano-cli allegra transaction build --socket-path SOCKET_PATH - [--cardano-mode - [--epoch-slots SLOTS]] - ( --mainnet - | --testnet-magic NATURAL - ) - [ --script-valid - | --script-invalid - ] - [--witness-override WORD] - (--tx-in TX-IN - [ --spending-tx-in-reference TX-IN - ( --spending-plutus-script-v2 - | --spending-plutus-script-v3 - ) - ( --spending-reference-tx-in-datum-cbor-file CBOR_FILE - | --spending-reference-tx-in-datum-file JSON_FILE - | --spending-reference-tx-in-datum-value JSON_VALUE - | --spending-reference-tx-in-inline-datum-present - ) - ( --spending-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --spending-reference-tx-in-redeemer-file JSON_FILE - | --spending-reference-tx-in-redeemer-value JSON_VALUE - ) - | --simple-script-tx-in-reference TX-IN - | --tx-in-script-file FILEPATH - [ - ( --tx-in-datum-cbor-file CBOR_FILE - | --tx-in-datum-file JSON_FILE - | --tx-in-datum-value JSON_VALUE - | --tx-in-inline-datum-present - ) - ( --tx-in-redeemer-cbor-file CBOR_FILE - | --tx-in-redeemer-file JSON_FILE - | --tx-in-redeemer-value JSON_VALUE - )] - ]) - [--read-only-tx-in-reference TX-IN] - [ --required-signer FILEPATH - | --required-signer-hash HASH - ] - [--tx-in-collateral TX-IN] - [--tx-out-return-collateral ADDRESS VALUE] - [--tx-total-collateral INTEGER] - [--tx-out ADDRESS VALUE - [ --tx-out-datum-hash HASH - | --tx-out-datum-hash-cbor-file CBOR_FILE - | --tx-out-datum-hash-file JSON_FILE - | --tx-out-datum-hash-value JSON_VALUE - | --tx-out-datum-embed-cbor-file CBOR_FILE - | --tx-out-datum-embed-file JSON_FILE - | --tx-out-datum-embed-value JSON_VALUE - | --tx-out-inline-datum-cbor-file CBOR_FILE - | --tx-out-inline-datum-file JSON_FILE - | --tx-out-inline-datum-value JSON_VALUE - ] - [--tx-out-reference-script-file FILEPATH]] - --change-address ADDRESS - [--mint VALUE - ( --mint-script-file FILEPATH - [ --mint-redeemer-cbor-file CBOR_FILE - | --mint-redeemer-file JSON_FILE - | --mint-redeemer-value JSON_VALUE - ] - | --simple-minting-script-tx-in-reference TX-IN - --policy-id HASH - | --mint-tx-in-reference TX-IN - ( --mint-plutus-script-v2 - | --mint-plutus-script-v3 - ) - ( --mint-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --mint-reference-tx-in-redeemer-file JSON_FILE - | --mint-reference-tx-in-redeemer-value JSON_VALUE - ) - --policy-id HASH - )] - [--invalid-before SLOT] - [--invalid-hereafter SLOT] - [--certificate-file FILEPATH - [ --certificate-script-file FILEPATH - [ --certificate-redeemer-cbor-file CBOR_FILE - | --certificate-redeemer-file JSON_FILE - | --certificate-redeemer-value JSON_VALUE - ] - | --certificate-tx-in-reference TX-IN - ( --certificate-plutus-script-v2 - | --certificate-plutus-script-v3 - ) - ( --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --certificate-reference-tx-in-redeemer-file JSON_FILE - | --certificate-reference-tx-in-redeemer-value JSON_VALUE - ) - ]] - [--withdrawal WITHDRAWAL - [ --withdrawal-script-file FILEPATH - [ --withdrawal-redeemer-cbor-file CBOR_FILE - | --withdrawal-redeemer-file JSON_FILE - | --withdrawal-redeemer-value JSON_VALUE - ] - | --withdrawal-tx-in-reference TX-IN - ( --withdrawal-plutus-script-v2 - | --withdrawal-plutus-script-v3 - ) - ( --withdrawal-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --withdrawal-reference-tx-in-redeemer-file JSON_FILE - | --withdrawal-reference-tx-in-redeemer-value JSON_VALUE - ) - ]] - [ --json-metadata-no-schema - | --json-metadata-detailed-schema - ] - [--auxiliary-script-file FILEPATH] - [ --metadata-json-file FILEPATH - | --metadata-cbor-file FILEPATH - ] - [--update-proposal-file FILEPATH] - ( --out-file FILEPATH - | --calculate-plutus-script-cost FILEPATH - ) - - Build a balanced transaction (automatically calculates fees) - - Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m - -Available options: - --socket-path SOCKET_PATH - Path to the node socket. This overrides the - CARDANO_NODE_SOCKET_PATH environment variable. The - argument is optional if CARDANO_NODE_SOCKET_PATH is - defined and mandatory otherwise. - --cardano-mode For talking to a node running in full Cardano mode - (default). - --epoch-slots SLOTS The number of slots per epoch for the Byron era. - (default: 21600) - --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 - --script-valid Assertion that the script is valid. (default) - --script-invalid Assertion that the script is invalid. If a - transaction is submitted with such a script, the - script will fail and the collateral will be taken. - --witness-override WORD Specify and override the number of witnesses the - transaction requires. - --tx-in TX-IN TxId#TxIx - --spending-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a plutus reference script attached. - --spending-plutus-script-v2 - Specify a plutus script v2 reference script. - --spending-plutus-script-v3 - Specify a plutus script v3 reference script. - --spending-reference-tx-in-datum-cbor-file CBOR_FILE - The script datum file. The file has to be in CBOR - format. - --spending-reference-tx-in-datum-file JSON_FILE - The script datum file. The file must follow the - detailed JSON schema for script data. - --spending-reference-tx-in-datum-value JSON_VALUE - The script datum. There is no schema: (almost) any - JSON value is supported, including top-level strings - and numbers. - --spending-reference-tx-in-inline-datum-present - Inline datum present at transaction input. - --spending-reference-tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --spending-reference-tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --spending-reference-tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --simple-script-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a simple reference script attached. - --tx-in-script-file FILEPATH - The file containing the script to witness the - spending of the transaction input. - --tx-in-datum-cbor-file CBOR_FILE - The script datum file. The file has to be in CBOR - format. - --tx-in-datum-file JSON_FILE - The script datum file. The file must follow the - detailed JSON schema for script data. - --tx-in-datum-value JSON_VALUE - The script datum. There is no schema: (almost) any - JSON value is supported, including top-level strings - and numbers. - --tx-in-inline-datum-present - Inline datum present at transaction input. - --tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --read-only-tx-in-reference TX-IN - Specify a read only reference input. This reference - input is not witnessing anything it is simply - provided in the plutus script context. - --required-signer FILEPATH - Input filepath of the signing key (zero or more) - whose signature is required. - --required-signer-hash HASH - Hash of the verification key (zero or more) whose - signature is required. - --tx-in-collateral TX-IN TxId#TxIx - --tx-out-return-collateral ADDRESS VALUE - The transaction output as ADDRESS VALUE where ADDRESS - is the Bech32-encoded address followed by the value - in Lovelace. In the situation where your collateral - txin over collateralizes the transaction, you can - optionally specify a tx out of your choosing to - return the excess Lovelace. - --tx-total-collateral INTEGER - The total amount of collateral that will be collected - as fees in the event of a Plutus script failure. Must - be used in conjuction with - "--tx-out-return-collateral". - --tx-out ADDRESS VALUE The transaction output as ADDRESS VALUE where ADDRESS - is the Bech32-encoded address followed by the value - in the multi-asset syntax (including simply - Lovelace). - --tx-out-datum-hash HASH The script datum hash for this tx output, as the raw - datum hash (in hex). - --tx-out-datum-hash-cbor-file CBOR_FILE - The script datum hash for this tx output, by hashing - the script datum in the file. The file has to be in - CBOR format. - --tx-out-datum-hash-file JSON_FILE - The script datum hash for this tx output, by hashing - the script datum in the file. The file must follow - the detailed JSON schema for script data. - --tx-out-datum-hash-value JSON_VALUE - The script datum hash for this tx output, by hashing - the script datum given here. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --tx-out-datum-embed-cbor-file CBOR_FILE - The script datum to embed in the tx for this output, - in the given file. The file has to be in CBOR format. - --tx-out-datum-embed-file JSON_FILE - The script datum to embed in the tx for this output, - in the given file. The file must follow the detailed - JSON schema for script data. - --tx-out-datum-embed-value JSON_VALUE - The script datum to embed in the tx for this output, - given here. There is no schema: (almost) any JSON - value is supported, including top-level strings and - numbers. - --tx-out-inline-datum-cbor-file CBOR_FILE - The script datum to embed in the tx output as an - inline datum, in the given file. The file has to be - in CBOR format. - --tx-out-inline-datum-file JSON_FILE - The script datum to embed in the tx output as an - inline datum, in the given file. The file must follow - the detailed JSON schema for script data. - --tx-out-inline-datum-value JSON_VALUE - The script datum to embed in the tx output as an - inline datum, given here. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --tx-out-reference-script-file FILEPATH - Reference script input file. - --change-address ADDRESS Address where ADA in excess of the tx fee will go to. - --mint VALUE Mint multi-asset value(s) with the multi-asset cli - syntax. You must specify a script witness. - --mint-script-file FILEPATH - The file containing the script to witness the minting - of assets for a particular policy Id. - --mint-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --mint-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --mint-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --simple-minting-script-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a simple reference script attached. - --policy-id HASH Policy id of minting script. - --mint-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a plutus reference script attached. - --mint-plutus-script-v2 Specify a plutus script v2 reference script. - --mint-plutus-script-v3 Specify a plutus script v3 reference script. - --mint-reference-tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --mint-reference-tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --mint-reference-tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --policy-id HASH Policy id of minting script. - --invalid-before SLOT Time that transaction is valid from (in slots). - --invalid-hereafter SLOT Time that transaction is valid until (in slots). - --certificate-file FILEPATH - Filepath of the certificate. This encompasses all - types of certificates (stake pool certificates, stake - key certificates etc). Optionally specify a script - witness. - --certificate-script-file FILEPATH - The file containing the script to witness the use of - the certificate. - --certificate-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --certificate-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --certificate-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --certificate-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a plutus reference script attached. - --certificate-plutus-script-v2 - Specify a plutus script v2 reference script. - --certificate-plutus-script-v3 - Specify a plutus script v3 reference script. - --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --certificate-reference-tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --certificate-reference-tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --withdrawal WITHDRAWAL The reward withdrawal as StakeAddress+Lovelace where - StakeAddress is the Bech32-encoded stake address - followed by the amount in Lovelace. Optionally - specify a script witness. - --withdrawal-script-file FILEPATH - The file containing the script to witness the - withdrawal of rewards. - --withdrawal-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --withdrawal-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --withdrawal-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --withdrawal-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a plutus reference script attached. - --withdrawal-plutus-script-v2 - Specify a plutus script v2 reference script. - --withdrawal-plutus-script-v3 - Specify a plutus script v3 reference script. - --withdrawal-reference-tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --withdrawal-reference-tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --withdrawal-reference-tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --json-metadata-no-schema - Use the "no schema" conversion from JSON to tx - metadata (default). - --json-metadata-detailed-schema - Use the "detailed schema" conversion from JSON to tx - metadata. - --auxiliary-script-file FILEPATH - Filepath of auxiliary script(s) - --metadata-json-file FILEPATH - Filepath of the metadata file, in JSON format. - --metadata-cbor-file FILEPATH - Filepath of the metadata, in raw CBOR format. - --update-proposal-file FILEPATH - Filepath of the update proposal. - --out-file FILEPATH Output filepath of the JSON TxBody. - --calculate-plutus-script-cost FILEPATH - Where to write the script cost information. - -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_transaction_view.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_transaction_view.cli index 9f804c4d6..1085feec6 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_transaction_view.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_transaction_view.cli @@ -1 +1,2 @@ +WARNING: Selected era is deprecated and will be removed in the future. Command "era transaction view" has been removed. Please use "debug transaction view" instead. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_transaction.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_transaction.cli index f0b098886..7d9ae4b55 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_transaction.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_transaction.cli @@ -1,7 +1,5 @@ Usage: cardano-cli alonzo transaction ( build-raw - | build - | build-estimate | sign | witness | assemble @@ -22,12 +20,6 @@ Available options: Available commands: build-raw Build a transaction (low-level, inconvenient) - Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m - build Build a balanced transaction (automatically calculates fees) - - Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m - build-estimate Build a balanced transaction without access to a live node (automatically estimates fees) - Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m sign Sign a transaction witness Create a transaction witness diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_transaction_build-estimate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_transaction_build-estimate.cli deleted file mode 100644 index a89c9f2f3..000000000 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_transaction_build-estimate.cli +++ /dev/null @@ -1,417 +0,0 @@ -Usage: cardano-cli alonzo transaction build-estimate - [ --script-valid - | --script-invalid - ] - --shelley-key-witnesses INT - [--byron-key-witnesses Int] - --protocol-params-file FILEPATH - --total-utxo-value VALUE - (--tx-in TX-IN - [ --spending-tx-in-reference TX-IN - ( --spending-plutus-script-v2 - | --spending-plutus-script-v3 - ) - ( --spending-reference-tx-in-datum-cbor-file CBOR_FILE - | --spending-reference-tx-in-datum-file JSON_FILE - | --spending-reference-tx-in-datum-value JSON_VALUE - | --spending-reference-tx-in-inline-datum-present - ) - ( --spending-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --spending-reference-tx-in-redeemer-file JSON_FILE - | --spending-reference-tx-in-redeemer-value JSON_VALUE - ) - --spending-reference-tx-in-execution-units (INT, INT) - | --simple-script-tx-in-reference TX-IN - | --tx-in-script-file FILEPATH - [ - ( --tx-in-datum-cbor-file CBOR_FILE - | --tx-in-datum-file JSON_FILE - | --tx-in-datum-value JSON_VALUE - | --tx-in-inline-datum-present - ) - ( --tx-in-redeemer-cbor-file CBOR_FILE - | --tx-in-redeemer-file JSON_FILE - | --tx-in-redeemer-value JSON_VALUE - ) - --tx-in-execution-units (INT, INT)] - ]) - [--read-only-tx-in-reference TX-IN] - [ --required-signer FILEPATH - | --required-signer-hash HASH - ] - [--tx-in-collateral TX-IN] - [--tx-out-return-collateral ADDRESS VALUE] - [--tx-out ADDRESS VALUE - [ --tx-out-datum-hash HASH - | --tx-out-datum-hash-cbor-file CBOR_FILE - | --tx-out-datum-hash-file JSON_FILE - | --tx-out-datum-hash-value JSON_VALUE - | --tx-out-datum-embed-cbor-file CBOR_FILE - | --tx-out-datum-embed-file JSON_FILE - | --tx-out-datum-embed-value JSON_VALUE - | --tx-out-inline-datum-cbor-file CBOR_FILE - | --tx-out-inline-datum-file JSON_FILE - | --tx-out-inline-datum-value JSON_VALUE - ] - [--tx-out-reference-script-file FILEPATH]] - --change-address ADDRESS - [--mint VALUE - ( --mint-script-file FILEPATH - [ - ( --mint-redeemer-cbor-file CBOR_FILE - | --mint-redeemer-file JSON_FILE - | --mint-redeemer-value JSON_VALUE - ) - --mint-execution-units (INT, INT)] - | --simple-minting-script-tx-in-reference TX-IN - --policy-id HASH - | --mint-tx-in-reference TX-IN - ( --mint-plutus-script-v2 - | --mint-plutus-script-v3 - ) - ( --mint-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --mint-reference-tx-in-redeemer-file JSON_FILE - | --mint-reference-tx-in-redeemer-value JSON_VALUE - ) - --mint-reference-tx-in-execution-units (INT, INT) - --policy-id HASH - )] - [--invalid-before SLOT] - [--invalid-hereafter SLOT] - [ - --certificate-file FILEPATH - [ --certificate-script-file FILEPATH - [ - ( --certificate-redeemer-cbor-file CBOR_FILE - | --certificate-redeemer-file JSON_FILE - | --certificate-redeemer-value JSON_VALUE - ) - --certificate-execution-units (INT, INT)] - | --certificate-tx-in-reference TX-IN - ( --certificate-plutus-script-v2 - | --certificate-plutus-script-v3 - ) - ( --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --certificate-reference-tx-in-redeemer-file JSON_FILE - | --certificate-reference-tx-in-redeemer-value JSON_VALUE - ) - --certificate-reference-tx-in-execution-units (INT, INT) - ]] - [--withdrawal WITHDRAWAL - [ --withdrawal-script-file FILEPATH - [ - ( --withdrawal-redeemer-cbor-file CBOR_FILE - | --withdrawal-redeemer-file JSON_FILE - | --withdrawal-redeemer-value JSON_VALUE - ) - --withdrawal-execution-units (INT, INT)] - | --withdrawal-tx-in-reference TX-IN - ( --withdrawal-plutus-script-v2 - | --withdrawal-plutus-script-v3 - ) - ( --withdrawal-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --withdrawal-reference-tx-in-redeemer-file JSON_FILE - | --withdrawal-reference-tx-in-redeemer-value JSON_VALUE - ) - --withdrawal-reference-tx-in-execution-units (INT, INT) - ]] - [--tx-total-collateral INTEGER] - [--reference-script-size NATURAL] - [ --json-metadata-no-schema - | --json-metadata-detailed-schema - ] - [--auxiliary-script-file FILEPATH] - [ --metadata-json-file FILEPATH - | --metadata-cbor-file FILEPATH - ] - [--update-proposal-file FILEPATH] - --out-file FILEPATH - - Build a balanced transaction without access to a live node (automatically estimates fees) - - Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m - -Available options: - --script-valid Assertion that the script is valid. (default) - --script-invalid Assertion that the script is invalid. If a - transaction is submitted with such a script, the - script will fail and the collateral will be taken. - --shelley-key-witnesses INT - Specify the number of Shelley key witnesses the - transaction requires. - --byron-key-witnesses Int - Specify the number of Byron key witnesses the - transaction requires. - --protocol-params-file FILEPATH - Filepath of the JSON-encoded protocol parameters file - --total-utxo-value VALUE The total value of the UTxO that exists at the tx - inputs being spent. - --tx-in TX-IN TxId#TxIx - --spending-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a plutus reference script attached. - --spending-plutus-script-v2 - Specify a plutus script v2 reference script. - --spending-plutus-script-v3 - Specify a plutus script v3 reference script. - --spending-reference-tx-in-datum-cbor-file CBOR_FILE - The script datum file. The file has to be in CBOR - format. - --spending-reference-tx-in-datum-file JSON_FILE - The script datum file. The file must follow the - detailed JSON schema for script data. - --spending-reference-tx-in-datum-value JSON_VALUE - The script datum. There is no schema: (almost) any - JSON value is supported, including top-level strings - and numbers. - --spending-reference-tx-in-inline-datum-present - Inline datum present at transaction input. - --spending-reference-tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --spending-reference-tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --spending-reference-tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --spending-reference-tx-in-execution-units (INT, INT) - The time and space units needed by the script. - --simple-script-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a simple reference script attached. - --tx-in-script-file FILEPATH - The file containing the script to witness the - spending of the transaction input. - --tx-in-datum-cbor-file CBOR_FILE - The script datum file. The file has to be in CBOR - format. - --tx-in-datum-file JSON_FILE - The script datum file. The file must follow the - detailed JSON schema for script data. - --tx-in-datum-value JSON_VALUE - The script datum. There is no schema: (almost) any - JSON value is supported, including top-level strings - and numbers. - --tx-in-inline-datum-present - Inline datum present at transaction input. - --tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --tx-in-execution-units (INT, INT) - The time and space units needed by the script. - --read-only-tx-in-reference TX-IN - Specify a read only reference input. This reference - input is not witnessing anything it is simply - provided in the plutus script context. - --required-signer FILEPATH - Input filepath of the signing key (zero or more) - whose signature is required. - --required-signer-hash HASH - Hash of the verification key (zero or more) whose - signature is required. - --tx-in-collateral TX-IN TxId#TxIx - --tx-out-return-collateral ADDRESS VALUE - The transaction output as ADDRESS VALUE where ADDRESS - is the Bech32-encoded address followed by the value - in Lovelace. In the situation where your collateral - txin over collateralizes the transaction, you can - optionally specify a tx out of your choosing to - return the excess Lovelace. - --tx-out ADDRESS VALUE The transaction output as ADDRESS VALUE where ADDRESS - is the Bech32-encoded address followed by the value - in the multi-asset syntax (including simply - Lovelace). - --tx-out-datum-hash HASH The script datum hash for this tx output, as the raw - datum hash (in hex). - --tx-out-datum-hash-cbor-file CBOR_FILE - The script datum hash for this tx output, by hashing - the script datum in the file. The file has to be in - CBOR format. - --tx-out-datum-hash-file JSON_FILE - The script datum hash for this tx output, by hashing - the script datum in the file. The file must follow - the detailed JSON schema for script data. - --tx-out-datum-hash-value JSON_VALUE - The script datum hash for this tx output, by hashing - the script datum given here. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --tx-out-datum-embed-cbor-file CBOR_FILE - The script datum to embed in the tx for this output, - in the given file. The file has to be in CBOR format. - --tx-out-datum-embed-file JSON_FILE - The script datum to embed in the tx for this output, - in the given file. The file must follow the detailed - JSON schema for script data. - --tx-out-datum-embed-value JSON_VALUE - The script datum to embed in the tx for this output, - given here. There is no schema: (almost) any JSON - value is supported, including top-level strings and - numbers. - --tx-out-inline-datum-cbor-file CBOR_FILE - The script datum to embed in the tx output as an - inline datum, in the given file. The file has to be - in CBOR format. - --tx-out-inline-datum-file JSON_FILE - The script datum to embed in the tx output as an - inline datum, in the given file. The file must follow - the detailed JSON schema for script data. - --tx-out-inline-datum-value JSON_VALUE - The script datum to embed in the tx output as an - inline datum, given here. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --tx-out-reference-script-file FILEPATH - Reference script input file. - --change-address ADDRESS Address where ADA in excess of the tx fee will go to. - --mint VALUE Mint multi-asset value(s) with the multi-asset cli - syntax. You must specify a script witness. - --mint-script-file FILEPATH - The file containing the script to witness the minting - of assets for a particular policy Id. - --mint-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --mint-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --mint-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --mint-execution-units (INT, INT) - The time and space units needed by the script. - --simple-minting-script-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a simple reference script attached. - --policy-id HASH Policy id of minting script. - --mint-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a plutus reference script attached. - --mint-plutus-script-v2 Specify a plutus script v2 reference script. - --mint-plutus-script-v3 Specify a plutus script v3 reference script. - --mint-reference-tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --mint-reference-tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --mint-reference-tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --mint-reference-tx-in-execution-units (INT, INT) - The time and space units needed by the script. - --policy-id HASH Policy id of minting script. - --invalid-before SLOT Time that transaction is valid from (in slots). - --invalid-hereafter SLOT Time that transaction is valid until (in slots). - --certificate-file FILEPATH - Filepath of the certificate. This encompasses all - types of certificates (stake pool certificates, stake - key certificates etc). Optionally specify a script - witness. - --certificate-script-file FILEPATH - The file containing the script to witness the use of - the certificate. - --certificate-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --certificate-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --certificate-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --certificate-execution-units (INT, INT) - The time and space units needed by the script. - --certificate-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a plutus reference script attached. - --certificate-plutus-script-v2 - Specify a plutus script v2 reference script. - --certificate-plutus-script-v3 - Specify a plutus script v3 reference script. - --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --certificate-reference-tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --certificate-reference-tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --certificate-reference-tx-in-execution-units (INT, INT) - The time and space units needed by the script. - --withdrawal WITHDRAWAL The reward withdrawal as StakeAddress+Lovelace where - StakeAddress is the Bech32-encoded stake address - followed by the amount in Lovelace. Optionally - specify a script witness. - --withdrawal-script-file FILEPATH - The file containing the script to witness the - withdrawal of rewards. - --withdrawal-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --withdrawal-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --withdrawal-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --withdrawal-execution-units (INT, INT) - The time and space units needed by the script. - --withdrawal-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a plutus reference script attached. - --withdrawal-plutus-script-v2 - Specify a plutus script v2 reference script. - --withdrawal-plutus-script-v3 - Specify a plutus script v3 reference script. - --withdrawal-reference-tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --withdrawal-reference-tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --withdrawal-reference-tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --withdrawal-reference-tx-in-execution-units (INT, INT) - The time and space units needed by the script. - --tx-total-collateral INTEGER - The total amount of collateral that will be collected - as fees in the event of a Plutus script failure. Must - be used in conjuction with - "--tx-out-return-collateral". - --reference-script-size NATURAL - Total size in bytes of transaction reference scripts - (default is 0). - --json-metadata-no-schema - Use the "no schema" conversion from JSON to tx - metadata (default). - --json-metadata-detailed-schema - Use the "detailed schema" conversion from JSON to tx - metadata. - --auxiliary-script-file FILEPATH - Filepath of auxiliary script(s) - --metadata-json-file FILEPATH - Filepath of the metadata file, in JSON format. - --metadata-cbor-file FILEPATH - Filepath of the metadata, in raw CBOR format. - --update-proposal-file FILEPATH - Filepath of the update proposal. - --out-file FILEPATH Output filepath of the JSON TxBody. - -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_transaction_build.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_transaction_build.cli deleted file mode 100644 index 042ebf5bd..000000000 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_transaction_build.cli +++ /dev/null @@ -1,396 +0,0 @@ -Usage: cardano-cli alonzo transaction build --socket-path SOCKET_PATH - [--cardano-mode - [--epoch-slots SLOTS]] - ( --mainnet - | --testnet-magic NATURAL - ) - [ --script-valid - | --script-invalid - ] - [--witness-override WORD] - (--tx-in TX-IN - [ --spending-tx-in-reference TX-IN - ( --spending-plutus-script-v2 - | --spending-plutus-script-v3 - ) - ( --spending-reference-tx-in-datum-cbor-file CBOR_FILE - | --spending-reference-tx-in-datum-file JSON_FILE - | --spending-reference-tx-in-datum-value JSON_VALUE - | --spending-reference-tx-in-inline-datum-present - ) - ( --spending-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --spending-reference-tx-in-redeemer-file JSON_FILE - | --spending-reference-tx-in-redeemer-value JSON_VALUE - ) - | --simple-script-tx-in-reference TX-IN - | --tx-in-script-file FILEPATH - [ - ( --tx-in-datum-cbor-file CBOR_FILE - | --tx-in-datum-file JSON_FILE - | --tx-in-datum-value JSON_VALUE - | --tx-in-inline-datum-present - ) - ( --tx-in-redeemer-cbor-file CBOR_FILE - | --tx-in-redeemer-file JSON_FILE - | --tx-in-redeemer-value JSON_VALUE - )] - ]) - [--read-only-tx-in-reference TX-IN] - [ --required-signer FILEPATH - | --required-signer-hash HASH - ] - [--tx-in-collateral TX-IN] - [--tx-out-return-collateral ADDRESS VALUE] - [--tx-total-collateral INTEGER] - [--tx-out ADDRESS VALUE - [ --tx-out-datum-hash HASH - | --tx-out-datum-hash-cbor-file CBOR_FILE - | --tx-out-datum-hash-file JSON_FILE - | --tx-out-datum-hash-value JSON_VALUE - | --tx-out-datum-embed-cbor-file CBOR_FILE - | --tx-out-datum-embed-file JSON_FILE - | --tx-out-datum-embed-value JSON_VALUE - | --tx-out-inline-datum-cbor-file CBOR_FILE - | --tx-out-inline-datum-file JSON_FILE - | --tx-out-inline-datum-value JSON_VALUE - ] - [--tx-out-reference-script-file FILEPATH]] - --change-address ADDRESS - [--mint VALUE - ( --mint-script-file FILEPATH - [ --mint-redeemer-cbor-file CBOR_FILE - | --mint-redeemer-file JSON_FILE - | --mint-redeemer-value JSON_VALUE - ] - | --simple-minting-script-tx-in-reference TX-IN - --policy-id HASH - | --mint-tx-in-reference TX-IN - ( --mint-plutus-script-v2 - | --mint-plutus-script-v3 - ) - ( --mint-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --mint-reference-tx-in-redeemer-file JSON_FILE - | --mint-reference-tx-in-redeemer-value JSON_VALUE - ) - --policy-id HASH - )] - [--invalid-before SLOT] - [--invalid-hereafter SLOT] - [--certificate-file FILEPATH - [ --certificate-script-file FILEPATH - [ --certificate-redeemer-cbor-file CBOR_FILE - | --certificate-redeemer-file JSON_FILE - | --certificate-redeemer-value JSON_VALUE - ] - | --certificate-tx-in-reference TX-IN - ( --certificate-plutus-script-v2 - | --certificate-plutus-script-v3 - ) - ( --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --certificate-reference-tx-in-redeemer-file JSON_FILE - | --certificate-reference-tx-in-redeemer-value JSON_VALUE - ) - ]] - [--withdrawal WITHDRAWAL - [ --withdrawal-script-file FILEPATH - [ --withdrawal-redeemer-cbor-file CBOR_FILE - | --withdrawal-redeemer-file JSON_FILE - | --withdrawal-redeemer-value JSON_VALUE - ] - | --withdrawal-tx-in-reference TX-IN - ( --withdrawal-plutus-script-v2 - | --withdrawal-plutus-script-v3 - ) - ( --withdrawal-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --withdrawal-reference-tx-in-redeemer-file JSON_FILE - | --withdrawal-reference-tx-in-redeemer-value JSON_VALUE - ) - ]] - [ --json-metadata-no-schema - | --json-metadata-detailed-schema - ] - [--auxiliary-script-file FILEPATH] - [ --metadata-json-file FILEPATH - | --metadata-cbor-file FILEPATH - ] - [--update-proposal-file FILEPATH] - ( --out-file FILEPATH - | --calculate-plutus-script-cost FILEPATH - ) - - Build a balanced transaction (automatically calculates fees) - - Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m - -Available options: - --socket-path SOCKET_PATH - Path to the node socket. This overrides the - CARDANO_NODE_SOCKET_PATH environment variable. The - argument is optional if CARDANO_NODE_SOCKET_PATH is - defined and mandatory otherwise. - --cardano-mode For talking to a node running in full Cardano mode - (default). - --epoch-slots SLOTS The number of slots per epoch for the Byron era. - (default: 21600) - --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 - --script-valid Assertion that the script is valid. (default) - --script-invalid Assertion that the script is invalid. If a - transaction is submitted with such a script, the - script will fail and the collateral will be taken. - --witness-override WORD Specify and override the number of witnesses the - transaction requires. - --tx-in TX-IN TxId#TxIx - --spending-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a plutus reference script attached. - --spending-plutus-script-v2 - Specify a plutus script v2 reference script. - --spending-plutus-script-v3 - Specify a plutus script v3 reference script. - --spending-reference-tx-in-datum-cbor-file CBOR_FILE - The script datum file. The file has to be in CBOR - format. - --spending-reference-tx-in-datum-file JSON_FILE - The script datum file. The file must follow the - detailed JSON schema for script data. - --spending-reference-tx-in-datum-value JSON_VALUE - The script datum. There is no schema: (almost) any - JSON value is supported, including top-level strings - and numbers. - --spending-reference-tx-in-inline-datum-present - Inline datum present at transaction input. - --spending-reference-tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --spending-reference-tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --spending-reference-tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --simple-script-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a simple reference script attached. - --tx-in-script-file FILEPATH - The file containing the script to witness the - spending of the transaction input. - --tx-in-datum-cbor-file CBOR_FILE - The script datum file. The file has to be in CBOR - format. - --tx-in-datum-file JSON_FILE - The script datum file. The file must follow the - detailed JSON schema for script data. - --tx-in-datum-value JSON_VALUE - The script datum. There is no schema: (almost) any - JSON value is supported, including top-level strings - and numbers. - --tx-in-inline-datum-present - Inline datum present at transaction input. - --tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --read-only-tx-in-reference TX-IN - Specify a read only reference input. This reference - input is not witnessing anything it is simply - provided in the plutus script context. - --required-signer FILEPATH - Input filepath of the signing key (zero or more) - whose signature is required. - --required-signer-hash HASH - Hash of the verification key (zero or more) whose - signature is required. - --tx-in-collateral TX-IN TxId#TxIx - --tx-out-return-collateral ADDRESS VALUE - The transaction output as ADDRESS VALUE where ADDRESS - is the Bech32-encoded address followed by the value - in Lovelace. In the situation where your collateral - txin over collateralizes the transaction, you can - optionally specify a tx out of your choosing to - return the excess Lovelace. - --tx-total-collateral INTEGER - The total amount of collateral that will be collected - as fees in the event of a Plutus script failure. Must - be used in conjuction with - "--tx-out-return-collateral". - --tx-out ADDRESS VALUE The transaction output as ADDRESS VALUE where ADDRESS - is the Bech32-encoded address followed by the value - in the multi-asset syntax (including simply - Lovelace). - --tx-out-datum-hash HASH The script datum hash for this tx output, as the raw - datum hash (in hex). - --tx-out-datum-hash-cbor-file CBOR_FILE - The script datum hash for this tx output, by hashing - the script datum in the file. The file has to be in - CBOR format. - --tx-out-datum-hash-file JSON_FILE - The script datum hash for this tx output, by hashing - the script datum in the file. The file must follow - the detailed JSON schema for script data. - --tx-out-datum-hash-value JSON_VALUE - The script datum hash for this tx output, by hashing - the script datum given here. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --tx-out-datum-embed-cbor-file CBOR_FILE - The script datum to embed in the tx for this output, - in the given file. The file has to be in CBOR format. - --tx-out-datum-embed-file JSON_FILE - The script datum to embed in the tx for this output, - in the given file. The file must follow the detailed - JSON schema for script data. - --tx-out-datum-embed-value JSON_VALUE - The script datum to embed in the tx for this output, - given here. There is no schema: (almost) any JSON - value is supported, including top-level strings and - numbers. - --tx-out-inline-datum-cbor-file CBOR_FILE - The script datum to embed in the tx output as an - inline datum, in the given file. The file has to be - in CBOR format. - --tx-out-inline-datum-file JSON_FILE - The script datum to embed in the tx output as an - inline datum, in the given file. The file must follow - the detailed JSON schema for script data. - --tx-out-inline-datum-value JSON_VALUE - The script datum to embed in the tx output as an - inline datum, given here. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --tx-out-reference-script-file FILEPATH - Reference script input file. - --change-address ADDRESS Address where ADA in excess of the tx fee will go to. - --mint VALUE Mint multi-asset value(s) with the multi-asset cli - syntax. You must specify a script witness. - --mint-script-file FILEPATH - The file containing the script to witness the minting - of assets for a particular policy Id. - --mint-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --mint-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --mint-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --simple-minting-script-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a simple reference script attached. - --policy-id HASH Policy id of minting script. - --mint-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a plutus reference script attached. - --mint-plutus-script-v2 Specify a plutus script v2 reference script. - --mint-plutus-script-v3 Specify a plutus script v3 reference script. - --mint-reference-tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --mint-reference-tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --mint-reference-tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --policy-id HASH Policy id of minting script. - --invalid-before SLOT Time that transaction is valid from (in slots). - --invalid-hereafter SLOT Time that transaction is valid until (in slots). - --certificate-file FILEPATH - Filepath of the certificate. This encompasses all - types of certificates (stake pool certificates, stake - key certificates etc). Optionally specify a script - witness. - --certificate-script-file FILEPATH - The file containing the script to witness the use of - the certificate. - --certificate-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --certificate-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --certificate-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --certificate-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a plutus reference script attached. - --certificate-plutus-script-v2 - Specify a plutus script v2 reference script. - --certificate-plutus-script-v3 - Specify a plutus script v3 reference script. - --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --certificate-reference-tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --certificate-reference-tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --withdrawal WITHDRAWAL The reward withdrawal as StakeAddress+Lovelace where - StakeAddress is the Bech32-encoded stake address - followed by the amount in Lovelace. Optionally - specify a script witness. - --withdrawal-script-file FILEPATH - The file containing the script to witness the - withdrawal of rewards. - --withdrawal-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --withdrawal-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --withdrawal-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --withdrawal-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a plutus reference script attached. - --withdrawal-plutus-script-v2 - Specify a plutus script v2 reference script. - --withdrawal-plutus-script-v3 - Specify a plutus script v3 reference script. - --withdrawal-reference-tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --withdrawal-reference-tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --withdrawal-reference-tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --json-metadata-no-schema - Use the "no schema" conversion from JSON to tx - metadata (default). - --json-metadata-detailed-schema - Use the "detailed schema" conversion from JSON to tx - metadata. - --auxiliary-script-file FILEPATH - Filepath of auxiliary script(s) - --metadata-json-file FILEPATH - Filepath of the metadata file, in JSON format. - --metadata-cbor-file FILEPATH - Filepath of the metadata, in raw CBOR format. - --update-proposal-file FILEPATH - Filepath of the update proposal. - --out-file FILEPATH Output filepath of the JSON TxBody. - --calculate-plutus-script-cost FILEPATH - Where to write the script cost information. - -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_transaction_view.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_transaction_view.cli index 9f804c4d6..1085feec6 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_transaction_view.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_transaction_view.cli @@ -1 +1,2 @@ +WARNING: Selected era is deprecated and will be removed in the future. Command "era transaction view" has been removed. Please use "debug transaction view" instead. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_transaction_view.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_transaction_view.cli index 9f804c4d6..1085feec6 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_transaction_view.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_transaction_view.cli @@ -1 +1,2 @@ +WARNING: Selected era is deprecated and will be removed in the future. Command "era transaction view" has been removed. Please use "debug transaction view" instead. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_transaction_view.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_transaction_view.cli index 9f804c4d6..1085feec6 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_transaction_view.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_transaction_view.cli @@ -1 +1,2 @@ +WARNING: Selected era is deprecated and will be removed in the future. Command "era transaction view" has been removed. Please use "debug transaction view" instead. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_transaction_build.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_transaction_build.cli index 3aaf4989b..59123febb 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_transaction_build.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_transaction_build.cli @@ -1,10 +1,5 @@ Usage: cardano-cli legacy transaction build --socket-path SOCKET_PATH - [ --shelley-era - | --allegra-era - | --mary-era - | --alonzo-era - | --babbage-era - ] + [--babbage-era | --conway-era] [--cardano-mode [--epoch-slots SLOTS]] ( --mainnet @@ -161,16 +156,8 @@ Available options: CARDANO_NODE_SOCKET_PATH environment variable. The argument is optional if CARDANO_NODE_SOCKET_PATH is defined and mandatory otherwise. - --shelley-era Specify the Shelley era - DEPRECATED - will be - removed in the future - --allegra-era Specify the Allegra era - DEPRECATED - will be - removed in the future - --mary-era Specify the Mary era - DEPRECATED - will be removed - in the future - --alonzo-era Specify the Alonzo era - DEPRECATED - will be removed - in the future - --babbage-era Specify the Babbage era (default) - DEPRECATED - will - be removed in the future + --babbage-era Specify the Babbage era (default) + --conway-era Specify the Conway era --cardano-mode For talking to a node running in full Cardano mode (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_transaction.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_transaction.cli index 636ab2333..5e34d35c9 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_transaction.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_transaction.cli @@ -1,7 +1,5 @@ Usage: cardano-cli mary transaction ( build-raw - | build - | build-estimate | sign | witness | assemble @@ -22,12 +20,6 @@ Available options: Available commands: build-raw Build a transaction (low-level, inconvenient) - Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m - build Build a balanced transaction (automatically calculates fees) - - Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m - build-estimate Build a balanced transaction without access to a live node (automatically estimates fees) - Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m sign Sign a transaction witness Create a transaction witness diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_transaction_build-estimate.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_transaction_build-estimate.cli deleted file mode 100644 index 47d130538..000000000 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_transaction_build-estimate.cli +++ /dev/null @@ -1,417 +0,0 @@ -Usage: cardano-cli mary transaction build-estimate - [ --script-valid - | --script-invalid - ] - --shelley-key-witnesses INT - [--byron-key-witnesses Int] - --protocol-params-file FILEPATH - --total-utxo-value VALUE - (--tx-in TX-IN - [ --spending-tx-in-reference TX-IN - ( --spending-plutus-script-v2 - | --spending-plutus-script-v3 - ) - ( --spending-reference-tx-in-datum-cbor-file CBOR_FILE - | --spending-reference-tx-in-datum-file JSON_FILE - | --spending-reference-tx-in-datum-value JSON_VALUE - | --spending-reference-tx-in-inline-datum-present - ) - ( --spending-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --spending-reference-tx-in-redeemer-file JSON_FILE - | --spending-reference-tx-in-redeemer-value JSON_VALUE - ) - --spending-reference-tx-in-execution-units (INT, INT) - | --simple-script-tx-in-reference TX-IN - | --tx-in-script-file FILEPATH - [ - ( --tx-in-datum-cbor-file CBOR_FILE - | --tx-in-datum-file JSON_FILE - | --tx-in-datum-value JSON_VALUE - | --tx-in-inline-datum-present - ) - ( --tx-in-redeemer-cbor-file CBOR_FILE - | --tx-in-redeemer-file JSON_FILE - | --tx-in-redeemer-value JSON_VALUE - ) - --tx-in-execution-units (INT, INT)] - ]) - [--read-only-tx-in-reference TX-IN] - [ --required-signer FILEPATH - | --required-signer-hash HASH - ] - [--tx-in-collateral TX-IN] - [--tx-out-return-collateral ADDRESS VALUE] - [--tx-out ADDRESS VALUE - [ --tx-out-datum-hash HASH - | --tx-out-datum-hash-cbor-file CBOR_FILE - | --tx-out-datum-hash-file JSON_FILE - | --tx-out-datum-hash-value JSON_VALUE - | --tx-out-datum-embed-cbor-file CBOR_FILE - | --tx-out-datum-embed-file JSON_FILE - | --tx-out-datum-embed-value JSON_VALUE - | --tx-out-inline-datum-cbor-file CBOR_FILE - | --tx-out-inline-datum-file JSON_FILE - | --tx-out-inline-datum-value JSON_VALUE - ] - [--tx-out-reference-script-file FILEPATH]] - --change-address ADDRESS - [--mint VALUE - ( --mint-script-file FILEPATH - [ - ( --mint-redeemer-cbor-file CBOR_FILE - | --mint-redeemer-file JSON_FILE - | --mint-redeemer-value JSON_VALUE - ) - --mint-execution-units (INT, INT)] - | --simple-minting-script-tx-in-reference TX-IN - --policy-id HASH - | --mint-tx-in-reference TX-IN - ( --mint-plutus-script-v2 - | --mint-plutus-script-v3 - ) - ( --mint-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --mint-reference-tx-in-redeemer-file JSON_FILE - | --mint-reference-tx-in-redeemer-value JSON_VALUE - ) - --mint-reference-tx-in-execution-units (INT, INT) - --policy-id HASH - )] - [--invalid-before SLOT] - [--invalid-hereafter SLOT] - [ - --certificate-file FILEPATH - [ --certificate-script-file FILEPATH - [ - ( --certificate-redeemer-cbor-file CBOR_FILE - | --certificate-redeemer-file JSON_FILE - | --certificate-redeemer-value JSON_VALUE - ) - --certificate-execution-units (INT, INT)] - | --certificate-tx-in-reference TX-IN - ( --certificate-plutus-script-v2 - | --certificate-plutus-script-v3 - ) - ( --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --certificate-reference-tx-in-redeemer-file JSON_FILE - | --certificate-reference-tx-in-redeemer-value JSON_VALUE - ) - --certificate-reference-tx-in-execution-units (INT, INT) - ]] - [--withdrawal WITHDRAWAL - [ --withdrawal-script-file FILEPATH - [ - ( --withdrawal-redeemer-cbor-file CBOR_FILE - | --withdrawal-redeemer-file JSON_FILE - | --withdrawal-redeemer-value JSON_VALUE - ) - --withdrawal-execution-units (INT, INT)] - | --withdrawal-tx-in-reference TX-IN - ( --withdrawal-plutus-script-v2 - | --withdrawal-plutus-script-v3 - ) - ( --withdrawal-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --withdrawal-reference-tx-in-redeemer-file JSON_FILE - | --withdrawal-reference-tx-in-redeemer-value JSON_VALUE - ) - --withdrawal-reference-tx-in-execution-units (INT, INT) - ]] - [--tx-total-collateral INTEGER] - [--reference-script-size NATURAL] - [ --json-metadata-no-schema - | --json-metadata-detailed-schema - ] - [--auxiliary-script-file FILEPATH] - [ --metadata-json-file FILEPATH - | --metadata-cbor-file FILEPATH - ] - [--update-proposal-file FILEPATH] - --out-file FILEPATH - - Build a balanced transaction without access to a live node (automatically estimates fees) - - Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m - -Available options: - --script-valid Assertion that the script is valid. (default) - --script-invalid Assertion that the script is invalid. If a - transaction is submitted with such a script, the - script will fail and the collateral will be taken. - --shelley-key-witnesses INT - Specify the number of Shelley key witnesses the - transaction requires. - --byron-key-witnesses Int - Specify the number of Byron key witnesses the - transaction requires. - --protocol-params-file FILEPATH - Filepath of the JSON-encoded protocol parameters file - --total-utxo-value VALUE The total value of the UTxO that exists at the tx - inputs being spent. - --tx-in TX-IN TxId#TxIx - --spending-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a plutus reference script attached. - --spending-plutus-script-v2 - Specify a plutus script v2 reference script. - --spending-plutus-script-v3 - Specify a plutus script v3 reference script. - --spending-reference-tx-in-datum-cbor-file CBOR_FILE - The script datum file. The file has to be in CBOR - format. - --spending-reference-tx-in-datum-file JSON_FILE - The script datum file. The file must follow the - detailed JSON schema for script data. - --spending-reference-tx-in-datum-value JSON_VALUE - The script datum. There is no schema: (almost) any - JSON value is supported, including top-level strings - and numbers. - --spending-reference-tx-in-inline-datum-present - Inline datum present at transaction input. - --spending-reference-tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --spending-reference-tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --spending-reference-tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --spending-reference-tx-in-execution-units (INT, INT) - The time and space units needed by the script. - --simple-script-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a simple reference script attached. - --tx-in-script-file FILEPATH - The file containing the script to witness the - spending of the transaction input. - --tx-in-datum-cbor-file CBOR_FILE - The script datum file. The file has to be in CBOR - format. - --tx-in-datum-file JSON_FILE - The script datum file. The file must follow the - detailed JSON schema for script data. - --tx-in-datum-value JSON_VALUE - The script datum. There is no schema: (almost) any - JSON value is supported, including top-level strings - and numbers. - --tx-in-inline-datum-present - Inline datum present at transaction input. - --tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --tx-in-execution-units (INT, INT) - The time and space units needed by the script. - --read-only-tx-in-reference TX-IN - Specify a read only reference input. This reference - input is not witnessing anything it is simply - provided in the plutus script context. - --required-signer FILEPATH - Input filepath of the signing key (zero or more) - whose signature is required. - --required-signer-hash HASH - Hash of the verification key (zero or more) whose - signature is required. - --tx-in-collateral TX-IN TxId#TxIx - --tx-out-return-collateral ADDRESS VALUE - The transaction output as ADDRESS VALUE where ADDRESS - is the Bech32-encoded address followed by the value - in Lovelace. In the situation where your collateral - txin over collateralizes the transaction, you can - optionally specify a tx out of your choosing to - return the excess Lovelace. - --tx-out ADDRESS VALUE The transaction output as ADDRESS VALUE where ADDRESS - is the Bech32-encoded address followed by the value - in the multi-asset syntax (including simply - Lovelace). - --tx-out-datum-hash HASH The script datum hash for this tx output, as the raw - datum hash (in hex). - --tx-out-datum-hash-cbor-file CBOR_FILE - The script datum hash for this tx output, by hashing - the script datum in the file. The file has to be in - CBOR format. - --tx-out-datum-hash-file JSON_FILE - The script datum hash for this tx output, by hashing - the script datum in the file. The file must follow - the detailed JSON schema for script data. - --tx-out-datum-hash-value JSON_VALUE - The script datum hash for this tx output, by hashing - the script datum given here. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --tx-out-datum-embed-cbor-file CBOR_FILE - The script datum to embed in the tx for this output, - in the given file. The file has to be in CBOR format. - --tx-out-datum-embed-file JSON_FILE - The script datum to embed in the tx for this output, - in the given file. The file must follow the detailed - JSON schema for script data. - --tx-out-datum-embed-value JSON_VALUE - The script datum to embed in the tx for this output, - given here. There is no schema: (almost) any JSON - value is supported, including top-level strings and - numbers. - --tx-out-inline-datum-cbor-file CBOR_FILE - The script datum to embed in the tx output as an - inline datum, in the given file. The file has to be - in CBOR format. - --tx-out-inline-datum-file JSON_FILE - The script datum to embed in the tx output as an - inline datum, in the given file. The file must follow - the detailed JSON schema for script data. - --tx-out-inline-datum-value JSON_VALUE - The script datum to embed in the tx output as an - inline datum, given here. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --tx-out-reference-script-file FILEPATH - Reference script input file. - --change-address ADDRESS Address where ADA in excess of the tx fee will go to. - --mint VALUE Mint multi-asset value(s) with the multi-asset cli - syntax. You must specify a script witness. - --mint-script-file FILEPATH - The file containing the script to witness the minting - of assets for a particular policy Id. - --mint-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --mint-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --mint-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --mint-execution-units (INT, INT) - The time and space units needed by the script. - --simple-minting-script-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a simple reference script attached. - --policy-id HASH Policy id of minting script. - --mint-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a plutus reference script attached. - --mint-plutus-script-v2 Specify a plutus script v2 reference script. - --mint-plutus-script-v3 Specify a plutus script v3 reference script. - --mint-reference-tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --mint-reference-tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --mint-reference-tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --mint-reference-tx-in-execution-units (INT, INT) - The time and space units needed by the script. - --policy-id HASH Policy id of minting script. - --invalid-before SLOT Time that transaction is valid from (in slots). - --invalid-hereafter SLOT Time that transaction is valid until (in slots). - --certificate-file FILEPATH - Filepath of the certificate. This encompasses all - types of certificates (stake pool certificates, stake - key certificates etc). Optionally specify a script - witness. - --certificate-script-file FILEPATH - The file containing the script to witness the use of - the certificate. - --certificate-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --certificate-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --certificate-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --certificate-execution-units (INT, INT) - The time and space units needed by the script. - --certificate-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a plutus reference script attached. - --certificate-plutus-script-v2 - Specify a plutus script v2 reference script. - --certificate-plutus-script-v3 - Specify a plutus script v3 reference script. - --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --certificate-reference-tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --certificate-reference-tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --certificate-reference-tx-in-execution-units (INT, INT) - The time and space units needed by the script. - --withdrawal WITHDRAWAL The reward withdrawal as StakeAddress+Lovelace where - StakeAddress is the Bech32-encoded stake address - followed by the amount in Lovelace. Optionally - specify a script witness. - --withdrawal-script-file FILEPATH - The file containing the script to witness the - withdrawal of rewards. - --withdrawal-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --withdrawal-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --withdrawal-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --withdrawal-execution-units (INT, INT) - The time and space units needed by the script. - --withdrawal-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a plutus reference script attached. - --withdrawal-plutus-script-v2 - Specify a plutus script v2 reference script. - --withdrawal-plutus-script-v3 - Specify a plutus script v3 reference script. - --withdrawal-reference-tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --withdrawal-reference-tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --withdrawal-reference-tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --withdrawal-reference-tx-in-execution-units (INT, INT) - The time and space units needed by the script. - --tx-total-collateral INTEGER - The total amount of collateral that will be collected - as fees in the event of a Plutus script failure. Must - be used in conjuction with - "--tx-out-return-collateral". - --reference-script-size NATURAL - Total size in bytes of transaction reference scripts - (default is 0). - --json-metadata-no-schema - Use the "no schema" conversion from JSON to tx - metadata (default). - --json-metadata-detailed-schema - Use the "detailed schema" conversion from JSON to tx - metadata. - --auxiliary-script-file FILEPATH - Filepath of auxiliary script(s) - --metadata-json-file FILEPATH - Filepath of the metadata file, in JSON format. - --metadata-cbor-file FILEPATH - Filepath of the metadata, in raw CBOR format. - --update-proposal-file FILEPATH - Filepath of the update proposal. - --out-file FILEPATH Output filepath of the JSON TxBody. - -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_transaction_build.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_transaction_build.cli deleted file mode 100644 index e25b0de71..000000000 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_transaction_build.cli +++ /dev/null @@ -1,394 +0,0 @@ -Usage: cardano-cli mary transaction build --socket-path SOCKET_PATH - [--cardano-mode - [--epoch-slots SLOTS]] - ( --mainnet - | --testnet-magic NATURAL - ) - [--script-valid | --script-invalid] - [--witness-override WORD] - (--tx-in TX-IN - [ --spending-tx-in-reference TX-IN - ( --spending-plutus-script-v2 - | --spending-plutus-script-v3 - ) - ( --spending-reference-tx-in-datum-cbor-file CBOR_FILE - | --spending-reference-tx-in-datum-file JSON_FILE - | --spending-reference-tx-in-datum-value JSON_VALUE - | --spending-reference-tx-in-inline-datum-present - ) - ( --spending-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --spending-reference-tx-in-redeemer-file JSON_FILE - | --spending-reference-tx-in-redeemer-value JSON_VALUE - ) - | --simple-script-tx-in-reference TX-IN - | --tx-in-script-file FILEPATH - [ - ( --tx-in-datum-cbor-file CBOR_FILE - | --tx-in-datum-file JSON_FILE - | --tx-in-datum-value JSON_VALUE - | --tx-in-inline-datum-present - ) - ( --tx-in-redeemer-cbor-file CBOR_FILE - | --tx-in-redeemer-file JSON_FILE - | --tx-in-redeemer-value JSON_VALUE - )] - ]) - [--read-only-tx-in-reference TX-IN] - [ --required-signer FILEPATH - | --required-signer-hash HASH - ] - [--tx-in-collateral TX-IN] - [--tx-out-return-collateral ADDRESS VALUE] - [--tx-total-collateral INTEGER] - [--tx-out ADDRESS VALUE - [ --tx-out-datum-hash HASH - | --tx-out-datum-hash-cbor-file CBOR_FILE - | --tx-out-datum-hash-file JSON_FILE - | --tx-out-datum-hash-value JSON_VALUE - | --tx-out-datum-embed-cbor-file CBOR_FILE - | --tx-out-datum-embed-file JSON_FILE - | --tx-out-datum-embed-value JSON_VALUE - | --tx-out-inline-datum-cbor-file CBOR_FILE - | --tx-out-inline-datum-file JSON_FILE - | --tx-out-inline-datum-value JSON_VALUE - ] - [--tx-out-reference-script-file FILEPATH]] - --change-address ADDRESS - [--mint VALUE - ( --mint-script-file FILEPATH - [ --mint-redeemer-cbor-file CBOR_FILE - | --mint-redeemer-file JSON_FILE - | --mint-redeemer-value JSON_VALUE - ] - | --simple-minting-script-tx-in-reference TX-IN - --policy-id HASH - | --mint-tx-in-reference TX-IN - ( --mint-plutus-script-v2 - | --mint-plutus-script-v3 - ) - ( --mint-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --mint-reference-tx-in-redeemer-file JSON_FILE - | --mint-reference-tx-in-redeemer-value JSON_VALUE - ) - --policy-id HASH - )] - [--invalid-before SLOT] - [--invalid-hereafter SLOT] - [--certificate-file FILEPATH - [ --certificate-script-file FILEPATH - [ --certificate-redeemer-cbor-file CBOR_FILE - | --certificate-redeemer-file JSON_FILE - | --certificate-redeemer-value JSON_VALUE - ] - | --certificate-tx-in-reference TX-IN - ( --certificate-plutus-script-v2 - | --certificate-plutus-script-v3 - ) - ( --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --certificate-reference-tx-in-redeemer-file JSON_FILE - | --certificate-reference-tx-in-redeemer-value JSON_VALUE - ) - ]] - [--withdrawal WITHDRAWAL - [ --withdrawal-script-file FILEPATH - [ --withdrawal-redeemer-cbor-file CBOR_FILE - | --withdrawal-redeemer-file JSON_FILE - | --withdrawal-redeemer-value JSON_VALUE - ] - | --withdrawal-tx-in-reference TX-IN - ( --withdrawal-plutus-script-v2 - | --withdrawal-plutus-script-v3 - ) - ( --withdrawal-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --withdrawal-reference-tx-in-redeemer-file JSON_FILE - | --withdrawal-reference-tx-in-redeemer-value JSON_VALUE - ) - ]] - [ --json-metadata-no-schema - | --json-metadata-detailed-schema - ] - [--auxiliary-script-file FILEPATH] - [ --metadata-json-file FILEPATH - | --metadata-cbor-file FILEPATH - ] - [--update-proposal-file FILEPATH] - ( --out-file FILEPATH - | --calculate-plutus-script-cost FILEPATH - ) - - Build a balanced transaction (automatically calculates fees) - - Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m - -Available options: - --socket-path SOCKET_PATH - Path to the node socket. This overrides the - CARDANO_NODE_SOCKET_PATH environment variable. The - argument is optional if CARDANO_NODE_SOCKET_PATH is - defined and mandatory otherwise. - --cardano-mode For talking to a node running in full Cardano mode - (default). - --epoch-slots SLOTS The number of slots per epoch for the Byron era. - (default: 21600) - --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 - --script-valid Assertion that the script is valid. (default) - --script-invalid Assertion that the script is invalid. If a - transaction is submitted with such a script, the - script will fail and the collateral will be taken. - --witness-override WORD Specify and override the number of witnesses the - transaction requires. - --tx-in TX-IN TxId#TxIx - --spending-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a plutus reference script attached. - --spending-plutus-script-v2 - Specify a plutus script v2 reference script. - --spending-plutus-script-v3 - Specify a plutus script v3 reference script. - --spending-reference-tx-in-datum-cbor-file CBOR_FILE - The script datum file. The file has to be in CBOR - format. - --spending-reference-tx-in-datum-file JSON_FILE - The script datum file. The file must follow the - detailed JSON schema for script data. - --spending-reference-tx-in-datum-value JSON_VALUE - The script datum. There is no schema: (almost) any - JSON value is supported, including top-level strings - and numbers. - --spending-reference-tx-in-inline-datum-present - Inline datum present at transaction input. - --spending-reference-tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --spending-reference-tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --spending-reference-tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --simple-script-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a simple reference script attached. - --tx-in-script-file FILEPATH - The file containing the script to witness the - spending of the transaction input. - --tx-in-datum-cbor-file CBOR_FILE - The script datum file. The file has to be in CBOR - format. - --tx-in-datum-file JSON_FILE - The script datum file. The file must follow the - detailed JSON schema for script data. - --tx-in-datum-value JSON_VALUE - The script datum. There is no schema: (almost) any - JSON value is supported, including top-level strings - and numbers. - --tx-in-inline-datum-present - Inline datum present at transaction input. - --tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --read-only-tx-in-reference TX-IN - Specify a read only reference input. This reference - input is not witnessing anything it is simply - provided in the plutus script context. - --required-signer FILEPATH - Input filepath of the signing key (zero or more) - whose signature is required. - --required-signer-hash HASH - Hash of the verification key (zero or more) whose - signature is required. - --tx-in-collateral TX-IN TxId#TxIx - --tx-out-return-collateral ADDRESS VALUE - The transaction output as ADDRESS VALUE where ADDRESS - is the Bech32-encoded address followed by the value - in Lovelace. In the situation where your collateral - txin over collateralizes the transaction, you can - optionally specify a tx out of your choosing to - return the excess Lovelace. - --tx-total-collateral INTEGER - The total amount of collateral that will be collected - as fees in the event of a Plutus script failure. Must - be used in conjuction with - "--tx-out-return-collateral". - --tx-out ADDRESS VALUE The transaction output as ADDRESS VALUE where ADDRESS - is the Bech32-encoded address followed by the value - in the multi-asset syntax (including simply - Lovelace). - --tx-out-datum-hash HASH The script datum hash for this tx output, as the raw - datum hash (in hex). - --tx-out-datum-hash-cbor-file CBOR_FILE - The script datum hash for this tx output, by hashing - the script datum in the file. The file has to be in - CBOR format. - --tx-out-datum-hash-file JSON_FILE - The script datum hash for this tx output, by hashing - the script datum in the file. The file must follow - the detailed JSON schema for script data. - --tx-out-datum-hash-value JSON_VALUE - The script datum hash for this tx output, by hashing - the script datum given here. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --tx-out-datum-embed-cbor-file CBOR_FILE - The script datum to embed in the tx for this output, - in the given file. The file has to be in CBOR format. - --tx-out-datum-embed-file JSON_FILE - The script datum to embed in the tx for this output, - in the given file. The file must follow the detailed - JSON schema for script data. - --tx-out-datum-embed-value JSON_VALUE - The script datum to embed in the tx for this output, - given here. There is no schema: (almost) any JSON - value is supported, including top-level strings and - numbers. - --tx-out-inline-datum-cbor-file CBOR_FILE - The script datum to embed in the tx output as an - inline datum, in the given file. The file has to be - in CBOR format. - --tx-out-inline-datum-file JSON_FILE - The script datum to embed in the tx output as an - inline datum, in the given file. The file must follow - the detailed JSON schema for script data. - --tx-out-inline-datum-value JSON_VALUE - The script datum to embed in the tx output as an - inline datum, given here. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --tx-out-reference-script-file FILEPATH - Reference script input file. - --change-address ADDRESS Address where ADA in excess of the tx fee will go to. - --mint VALUE Mint multi-asset value(s) with the multi-asset cli - syntax. You must specify a script witness. - --mint-script-file FILEPATH - The file containing the script to witness the minting - of assets for a particular policy Id. - --mint-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --mint-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --mint-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --simple-minting-script-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a simple reference script attached. - --policy-id HASH Policy id of minting script. - --mint-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a plutus reference script attached. - --mint-plutus-script-v2 Specify a plutus script v2 reference script. - --mint-plutus-script-v3 Specify a plutus script v3 reference script. - --mint-reference-tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --mint-reference-tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --mint-reference-tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --policy-id HASH Policy id of minting script. - --invalid-before SLOT Time that transaction is valid from (in slots). - --invalid-hereafter SLOT Time that transaction is valid until (in slots). - --certificate-file FILEPATH - Filepath of the certificate. This encompasses all - types of certificates (stake pool certificates, stake - key certificates etc). Optionally specify a script - witness. - --certificate-script-file FILEPATH - The file containing the script to witness the use of - the certificate. - --certificate-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --certificate-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --certificate-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --certificate-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a plutus reference script attached. - --certificate-plutus-script-v2 - Specify a plutus script v2 reference script. - --certificate-plutus-script-v3 - Specify a plutus script v3 reference script. - --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --certificate-reference-tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --certificate-reference-tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --withdrawal WITHDRAWAL The reward withdrawal as StakeAddress+Lovelace where - StakeAddress is the Bech32-encoded stake address - followed by the amount in Lovelace. Optionally - specify a script witness. - --withdrawal-script-file FILEPATH - The file containing the script to witness the - withdrawal of rewards. - --withdrawal-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --withdrawal-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --withdrawal-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --withdrawal-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a plutus reference script attached. - --withdrawal-plutus-script-v2 - Specify a plutus script v2 reference script. - --withdrawal-plutus-script-v3 - Specify a plutus script v3 reference script. - --withdrawal-reference-tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --withdrawal-reference-tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --withdrawal-reference-tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --json-metadata-no-schema - Use the "no schema" conversion from JSON to tx - metadata (default). - --json-metadata-detailed-schema - Use the "detailed schema" conversion from JSON to tx - metadata. - --auxiliary-script-file FILEPATH - Filepath of auxiliary script(s) - --metadata-json-file FILEPATH - Filepath of the metadata file, in JSON format. - --metadata-cbor-file FILEPATH - Filepath of the metadata, in raw CBOR format. - --update-proposal-file FILEPATH - Filepath of the update proposal. - --out-file FILEPATH Output filepath of the JSON TxBody. - --calculate-plutus-script-cost FILEPATH - Where to write the script cost information. - -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_transaction_view.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_transaction_view.cli index 9f804c4d6..1085feec6 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_transaction_view.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_transaction_view.cli @@ -1 +1,2 @@ +WARNING: Selected era is deprecated and will be removed in the future. Command "era transaction view" has been removed. Please use "debug transaction view" instead. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_transaction.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_transaction.cli index 7d1e28c38..b5ef5529f 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_transaction.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_transaction.cli @@ -1,6 +1,5 @@ Usage: cardano-cli shelley transaction ( build-raw - | build | sign | witness | assemble @@ -21,9 +20,6 @@ Available options: Available commands: build-raw Build a transaction (low-level, inconvenient) - Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m - build Build a balanced transaction (automatically calculates fees) - Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m sign Sign a transaction witness Create a transaction witness diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_transaction_build.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_transaction_build.cli deleted file mode 100644 index fb3cdf787..000000000 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_transaction_build.cli +++ /dev/null @@ -1,396 +0,0 @@ -Usage: cardano-cli shelley transaction build --socket-path SOCKET_PATH - [--cardano-mode - [--epoch-slots SLOTS]] - ( --mainnet - | --testnet-magic NATURAL - ) - [ --script-valid - | --script-invalid - ] - [--witness-override WORD] - (--tx-in TX-IN - [ --spending-tx-in-reference TX-IN - ( --spending-plutus-script-v2 - | --spending-plutus-script-v3 - ) - ( --spending-reference-tx-in-datum-cbor-file CBOR_FILE - | --spending-reference-tx-in-datum-file JSON_FILE - | --spending-reference-tx-in-datum-value JSON_VALUE - | --spending-reference-tx-in-inline-datum-present - ) - ( --spending-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --spending-reference-tx-in-redeemer-file JSON_FILE - | --spending-reference-tx-in-redeemer-value JSON_VALUE - ) - | --simple-script-tx-in-reference TX-IN - | --tx-in-script-file FILEPATH - [ - ( --tx-in-datum-cbor-file CBOR_FILE - | --tx-in-datum-file JSON_FILE - | --tx-in-datum-value JSON_VALUE - | --tx-in-inline-datum-present - ) - ( --tx-in-redeemer-cbor-file CBOR_FILE - | --tx-in-redeemer-file JSON_FILE - | --tx-in-redeemer-value JSON_VALUE - )] - ]) - [--read-only-tx-in-reference TX-IN] - [ --required-signer FILEPATH - | --required-signer-hash HASH - ] - [--tx-in-collateral TX-IN] - [--tx-out-return-collateral ADDRESS VALUE] - [--tx-total-collateral INTEGER] - [--tx-out ADDRESS VALUE - [ --tx-out-datum-hash HASH - | --tx-out-datum-hash-cbor-file CBOR_FILE - | --tx-out-datum-hash-file JSON_FILE - | --tx-out-datum-hash-value JSON_VALUE - | --tx-out-datum-embed-cbor-file CBOR_FILE - | --tx-out-datum-embed-file JSON_FILE - | --tx-out-datum-embed-value JSON_VALUE - | --tx-out-inline-datum-cbor-file CBOR_FILE - | --tx-out-inline-datum-file JSON_FILE - | --tx-out-inline-datum-value JSON_VALUE - ] - [--tx-out-reference-script-file FILEPATH]] - --change-address ADDRESS - [--mint VALUE - ( --mint-script-file FILEPATH - [ --mint-redeemer-cbor-file CBOR_FILE - | --mint-redeemer-file JSON_FILE - | --mint-redeemer-value JSON_VALUE - ] - | --simple-minting-script-tx-in-reference TX-IN - --policy-id HASH - | --mint-tx-in-reference TX-IN - ( --mint-plutus-script-v2 - | --mint-plutus-script-v3 - ) - ( --mint-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --mint-reference-tx-in-redeemer-file JSON_FILE - | --mint-reference-tx-in-redeemer-value JSON_VALUE - ) - --policy-id HASH - )] - [--invalid-before SLOT] - [--invalid-hereafter SLOT] - [--certificate-file FILEPATH - [ --certificate-script-file FILEPATH - [ --certificate-redeemer-cbor-file CBOR_FILE - | --certificate-redeemer-file JSON_FILE - | --certificate-redeemer-value JSON_VALUE - ] - | --certificate-tx-in-reference TX-IN - ( --certificate-plutus-script-v2 - | --certificate-plutus-script-v3 - ) - ( --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --certificate-reference-tx-in-redeemer-file JSON_FILE - | --certificate-reference-tx-in-redeemer-value JSON_VALUE - ) - ]] - [--withdrawal WITHDRAWAL - [ --withdrawal-script-file FILEPATH - [ --withdrawal-redeemer-cbor-file CBOR_FILE - | --withdrawal-redeemer-file JSON_FILE - | --withdrawal-redeemer-value JSON_VALUE - ] - | --withdrawal-tx-in-reference TX-IN - ( --withdrawal-plutus-script-v2 - | --withdrawal-plutus-script-v3 - ) - ( --withdrawal-reference-tx-in-redeemer-cbor-file CBOR_FILE - | --withdrawal-reference-tx-in-redeemer-file JSON_FILE - | --withdrawal-reference-tx-in-redeemer-value JSON_VALUE - ) - ]] - [ --json-metadata-no-schema - | --json-metadata-detailed-schema - ] - [--auxiliary-script-file FILEPATH] - [ --metadata-json-file FILEPATH - | --metadata-cbor-file FILEPATH - ] - [--update-proposal-file FILEPATH] - ( --out-file FILEPATH - | --calculate-plutus-script-cost FILEPATH - ) - - Build a balanced transaction (automatically calculates fees) - - Please note the order[93;22;23;24m of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.[0;22;23;24m - -Available options: - --socket-path SOCKET_PATH - Path to the node socket. This overrides the - CARDANO_NODE_SOCKET_PATH environment variable. The - argument is optional if CARDANO_NODE_SOCKET_PATH is - defined and mandatory otherwise. - --cardano-mode For talking to a node running in full Cardano mode - (default). - --epoch-slots SLOTS The number of slots per epoch for the Byron era. - (default: 21600) - --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 - --script-valid Assertion that the script is valid. (default) - --script-invalid Assertion that the script is invalid. If a - transaction is submitted with such a script, the - script will fail and the collateral will be taken. - --witness-override WORD Specify and override the number of witnesses the - transaction requires. - --tx-in TX-IN TxId#TxIx - --spending-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a plutus reference script attached. - --spending-plutus-script-v2 - Specify a plutus script v2 reference script. - --spending-plutus-script-v3 - Specify a plutus script v3 reference script. - --spending-reference-tx-in-datum-cbor-file CBOR_FILE - The script datum file. The file has to be in CBOR - format. - --spending-reference-tx-in-datum-file JSON_FILE - The script datum file. The file must follow the - detailed JSON schema for script data. - --spending-reference-tx-in-datum-value JSON_VALUE - The script datum. There is no schema: (almost) any - JSON value is supported, including top-level strings - and numbers. - --spending-reference-tx-in-inline-datum-present - Inline datum present at transaction input. - --spending-reference-tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --spending-reference-tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --spending-reference-tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --simple-script-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a simple reference script attached. - --tx-in-script-file FILEPATH - The file containing the script to witness the - spending of the transaction input. - --tx-in-datum-cbor-file CBOR_FILE - The script datum file. The file has to be in CBOR - format. - --tx-in-datum-file JSON_FILE - The script datum file. The file must follow the - detailed JSON schema for script data. - --tx-in-datum-value JSON_VALUE - The script datum. There is no schema: (almost) any - JSON value is supported, including top-level strings - and numbers. - --tx-in-inline-datum-present - Inline datum present at transaction input. - --tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --read-only-tx-in-reference TX-IN - Specify a read only reference input. This reference - input is not witnessing anything it is simply - provided in the plutus script context. - --required-signer FILEPATH - Input filepath of the signing key (zero or more) - whose signature is required. - --required-signer-hash HASH - Hash of the verification key (zero or more) whose - signature is required. - --tx-in-collateral TX-IN TxId#TxIx - --tx-out-return-collateral ADDRESS VALUE - The transaction output as ADDRESS VALUE where ADDRESS - is the Bech32-encoded address followed by the value - in Lovelace. In the situation where your collateral - txin over collateralizes the transaction, you can - optionally specify a tx out of your choosing to - return the excess Lovelace. - --tx-total-collateral INTEGER - The total amount of collateral that will be collected - as fees in the event of a Plutus script failure. Must - be used in conjuction with - "--tx-out-return-collateral". - --tx-out ADDRESS VALUE The transaction output as ADDRESS VALUE where ADDRESS - is the Bech32-encoded address followed by the value - in the multi-asset syntax (including simply - Lovelace). - --tx-out-datum-hash HASH The script datum hash for this tx output, as the raw - datum hash (in hex). - --tx-out-datum-hash-cbor-file CBOR_FILE - The script datum hash for this tx output, by hashing - the script datum in the file. The file has to be in - CBOR format. - --tx-out-datum-hash-file JSON_FILE - The script datum hash for this tx output, by hashing - the script datum in the file. The file must follow - the detailed JSON schema for script data. - --tx-out-datum-hash-value JSON_VALUE - The script datum hash for this tx output, by hashing - the script datum given here. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --tx-out-datum-embed-cbor-file CBOR_FILE - The script datum to embed in the tx for this output, - in the given file. The file has to be in CBOR format. - --tx-out-datum-embed-file JSON_FILE - The script datum to embed in the tx for this output, - in the given file. The file must follow the detailed - JSON schema for script data. - --tx-out-datum-embed-value JSON_VALUE - The script datum to embed in the tx for this output, - given here. There is no schema: (almost) any JSON - value is supported, including top-level strings and - numbers. - --tx-out-inline-datum-cbor-file CBOR_FILE - The script datum to embed in the tx output as an - inline datum, in the given file. The file has to be - in CBOR format. - --tx-out-inline-datum-file JSON_FILE - The script datum to embed in the tx output as an - inline datum, in the given file. The file must follow - the detailed JSON schema for script data. - --tx-out-inline-datum-value JSON_VALUE - The script datum to embed in the tx output as an - inline datum, given here. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --tx-out-reference-script-file FILEPATH - Reference script input file. - --change-address ADDRESS Address where ADA in excess of the tx fee will go to. - --mint VALUE Mint multi-asset value(s) with the multi-asset cli - syntax. You must specify a script witness. - --mint-script-file FILEPATH - The file containing the script to witness the minting - of assets for a particular policy Id. - --mint-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --mint-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --mint-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --simple-minting-script-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a simple reference script attached. - --policy-id HASH Policy id of minting script. - --mint-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a plutus reference script attached. - --mint-plutus-script-v2 Specify a plutus script v2 reference script. - --mint-plutus-script-v3 Specify a plutus script v3 reference script. - --mint-reference-tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --mint-reference-tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --mint-reference-tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --policy-id HASH Policy id of minting script. - --invalid-before SLOT Time that transaction is valid from (in slots). - --invalid-hereafter SLOT Time that transaction is valid until (in slots). - --certificate-file FILEPATH - Filepath of the certificate. This encompasses all - types of certificates (stake pool certificates, stake - key certificates etc). Optionally specify a script - witness. - --certificate-script-file FILEPATH - The file containing the script to witness the use of - the certificate. - --certificate-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --certificate-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --certificate-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --certificate-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a plutus reference script attached. - --certificate-plutus-script-v2 - Specify a plutus script v2 reference script. - --certificate-plutus-script-v3 - Specify a plutus script v3 reference script. - --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --certificate-reference-tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --certificate-reference-tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --withdrawal WITHDRAWAL The reward withdrawal as StakeAddress+Lovelace where - StakeAddress is the Bech32-encoded stake address - followed by the amount in Lovelace. Optionally - specify a script witness. - --withdrawal-script-file FILEPATH - The file containing the script to witness the - withdrawal of rewards. - --withdrawal-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --withdrawal-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --withdrawal-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --withdrawal-tx-in-reference TX-IN - TxId#TxIx - Specify a reference input. The reference - input must have a plutus reference script attached. - --withdrawal-plutus-script-v2 - Specify a plutus script v2 reference script. - --withdrawal-plutus-script-v3 - Specify a plutus script v3 reference script. - --withdrawal-reference-tx-in-redeemer-cbor-file CBOR_FILE - The script redeemer file. The file has to be in CBOR - format. - --withdrawal-reference-tx-in-redeemer-file JSON_FILE - The script redeemer file. The file must follow the - detailed JSON schema for script data. - --withdrawal-reference-tx-in-redeemer-value JSON_VALUE - The script redeemer value. There is no schema: - (almost) any JSON value is supported, including - top-level strings and numbers. - --json-metadata-no-schema - Use the "no schema" conversion from JSON to tx - metadata (default). - --json-metadata-detailed-schema - Use the "detailed schema" conversion from JSON to tx - metadata. - --auxiliary-script-file FILEPATH - Filepath of auxiliary script(s) - --metadata-json-file FILEPATH - Filepath of the metadata file, in JSON format. - --metadata-cbor-file FILEPATH - Filepath of the metadata, in raw CBOR format. - --update-proposal-file FILEPATH - Filepath of the update proposal. - --out-file FILEPATH Output filepath of the JSON TxBody. - --calculate-plutus-script-cost FILEPATH - Where to write the script cost information. - -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_transaction_view.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_transaction_view.cli index 9f804c4d6..1085feec6 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_transaction_view.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_transaction_view.cli @@ -1 +1,2 @@ +WARNING: Selected era is deprecated and will be removed in the future. Command "era transaction view" has been removed. Please use "debug transaction view" instead. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/transaction_build.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/transaction_build.cli index 9bcbf7c72..a3470c806 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/transaction_build.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/transaction_build.cli @@ -1,10 +1,5 @@ Usage: cardano-cli transaction build --socket-path SOCKET_PATH - [ --shelley-era - | --allegra-era - | --mary-era - | --alonzo-era - | --babbage-era - ] + [--babbage-era | --conway-era] [--cardano-mode [--epoch-slots SLOTS]] (--mainnet | --testnet-magic NATURAL) [--script-valid | --script-invalid] @@ -156,16 +151,8 @@ Available options: CARDANO_NODE_SOCKET_PATH environment variable. The argument is optional if CARDANO_NODE_SOCKET_PATH is defined and mandatory otherwise. - --shelley-era Specify the Shelley era - DEPRECATED - will be - removed in the future - --allegra-era Specify the Allegra era - DEPRECATED - will be - removed in the future - --mary-era Specify the Mary era - DEPRECATED - will be removed - in the future - --alonzo-era Specify the Alonzo era - DEPRECATED - will be removed - in the future - --babbage-era Specify the Babbage era (default) - DEPRECATED - will - be removed in the future + --babbage-era Specify the Babbage era (default) + --conway-era Specify the Conway era --cardano-mode For talking to a node running in full Cardano mode (default). --epoch-slots SLOTS The number of slots per epoch for the Byron era.