Skip to content

Commit

Permalink
Propagate changes in Cardano.CLI.EraBased.Options.Common
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbo4350 committed Jul 24, 2024
1 parent 469d718 commit 90e7b69
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions cardano-cli/src/Cardano/CLI/EraBased/Options/Common.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,7 @@ pScriptDatumOrFile scriptFlagPrefix witctx =
case witctx of
WitCtxTxIn ->
asum
[ ScriptDatumOrFileForTxIn
[ ScriptDatumOrFileForTxIn . Just
<$> pScriptDataOrFile
(scriptFlagPrefix ++ "-datum")
"The script datum."
Expand Down Expand Up @@ -1583,9 +1583,10 @@ pTxBuildOutputOptions =
)

pCertificateFile
:: BalanceTxExecUnits
:: ShelleyBasedEra era
-> BalanceTxExecUnits
-> Parser (CertificateFile, Maybe (ScriptWitnessFiles WitCtxStake))
pCertificateFile balanceExecUnits =
pCertificateFile sbe balanceExecUnits =
(,)
<$> ( fmap CertificateFile $
asum
Expand All @@ -1605,6 +1606,7 @@ pCertificateFile balanceExecUnits =
:: BalanceTxExecUnits -> Parser (ScriptWitnessFiles WitCtxStake)
pCertifyingScriptOrReferenceScriptWit bExecUnits =
pScriptWitnessFiles
sbe
WitCtxStake
balanceExecUnits
"certificate"
Expand Down Expand Up @@ -1682,13 +1684,14 @@ pMetadataFile =
]

pWithdrawal
:: BalanceTxExecUnits
:: ShelleyBasedEra era
-> BalanceTxExecUnits
-> Parser
( StakeAddress
, L.Coin
, Maybe (ScriptWitnessFiles WitCtxStake)
)
pWithdrawal balance =
pWithdrawal sbe balance =
(\(stakeAddr, lovelace) maybeScriptFp -> (stakeAddr, lovelace, maybeScriptFp))
<$> Opt.option
(readerFromParsecParser parseWithdrawal)
Expand All @@ -1701,6 +1704,7 @@ pWithdrawal balance =
pWithdrawalScriptOrReferenceScriptWit :: Parser (ScriptWitnessFiles WitCtxStake)
pWithdrawalScriptOrReferenceScriptWit =
pScriptWitnessFiles
sbe
WitCtxStake
balance
"withdrawal"
Expand Down Expand Up @@ -2199,9 +2203,10 @@ pTxSubmitFile =
]

pTxIn
:: BalanceTxExecUnits
:: ShelleyBasedEra era
-> BalanceTxExecUnits
-> Parser (TxIn, Maybe (ScriptWitnessFiles WitCtxTxIn))
pTxIn balance =
pTxIn sbe balance =
(,)
<$> Opt.option
(readerFromParsecParser parseTxIn)
Expand All @@ -2210,7 +2215,7 @@ pTxIn balance =
<> Opt.help "TxId#TxIx"
)
<*> optional
( pPlutusReferenceScriptWitness balance
( pPlutusReferenceScriptWitness sbe balance
<|> pSimpleReferenceSpendingScriptWitess
<|> pEmbeddedPlutusScriptWitness
)
Expand Down Expand Up @@ -2268,6 +2273,7 @@ pTxIn balance =
pEmbeddedPlutusScriptWitness :: Parser (ScriptWitnessFiles WitCtxTxIn)
pEmbeddedPlutusScriptWitness =
pScriptWitnessFiles
sbe
WitCtxTxIn
balance
"tx-in"
Expand Down Expand Up @@ -2437,9 +2443,10 @@ pRefScriptFp =
<|> pure ReferenceScriptAnyEraNone

pMintMultiAsset
:: BalanceTxExecUnits
:: ShelleyBasedEra era
-> BalanceTxExecUnits
-> Parser (Value, [ScriptWitnessFiles WitCtxMint])
pMintMultiAsset balanceExecUnits =
pMintMultiAsset sbe balanceExecUnits =
(,)
<$> Opt.option
(readerFromParsecParser parseValue)
Expand All @@ -2457,6 +2464,7 @@ pMintMultiAsset balanceExecUnits =
:: BalanceTxExecUnits -> Parser (ScriptWitnessFiles WitCtxMint)
pMintingScriptOrReferenceScriptWit bExecUnits =
pScriptWitnessFiles
sbe
WitCtxMint
bExecUnits
"mint"
Expand Down

0 comments on commit 90e7b69

Please sign in to comment.