Skip to content

Commit

Permalink
Merge pull request #509 from input-output-hk/smelc/babbage-stake-addr…
Browse files Browse the repository at this point in the history
…ess-reg-cert-no-key-reg-deposit-amt

stake-address registration-certificate: do not allow key-reg-deposit-amt before conway
  • Loading branch information
smelc authored Dec 11, 2023
2 parents a8bedc5 + f4b67ed commit a16da62
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 29 deletions.
10 changes: 5 additions & 5 deletions cardano-cli/src/Cardano/CLI/EraBased/Options/StakeAddress.hs
Original file line number Diff line number Diff line change
Expand Up @@ -87,18 +87,18 @@ pStakeAddressRegistrationCertificateCmd :: ()
pStakeAddressRegistrationCertificateCmd era = do
forEraInEonMaybe era $ \sbe ->
caseShelleyToBabbageOrConwayEraOnwards
(\shelleyToBabbage -> subParser "registration-certificate"
(const $ subParser "registration-certificate"
$ Opt.info
( StakeAddressRegistrationCertificateCmd (shelleyToBabbageEraToShelleyBasedEra shelleyToBabbage)
( StakeAddressRegistrationCertificateCmd sbe
<$> pStakeIdentifier
<*> optional pKeyRegistDeposit
<*> pure Nothing
<*> pOutputFile
)
desc
)
(\conwayOnwards -> subParser "registration-certificate"
(const $ subParser "registration-certificate"
$ Opt.info
( StakeAddressRegistrationCertificateCmd (conwayEraOnwardsToShelleyBasedEra conwayOnwards)
( StakeAddressRegistrationCertificateCmd sbe
<$> pStakeIdentifier
<*> fmap Just pKeyRegistDeposit
<*> pOutputFile
Expand Down
6 changes: 0 additions & 6 deletions cardano-cli/test/cardano-cli-golden/files/golden/help.cli
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,6 @@ Usage: cardano-cli shelley stake-address registration-certificate
| --stake-script-file FILE
| --stake-address ADDRESS
)
[--key-reg-deposit-amt NATURAL]
--out-file FILE

Create a stake address registration certificate
Expand Down Expand Up @@ -1831,7 +1830,6 @@ Usage: cardano-cli allegra stake-address registration-certificate
| --stake-script-file FILE
| --stake-address ADDRESS
)
[--key-reg-deposit-amt NATURAL]
--out-file FILE

Create a stake address registration certificate
Expand Down Expand Up @@ -2982,7 +2980,6 @@ Usage: cardano-cli mary stake-address registration-certificate
| --stake-script-file FILE
| --stake-address ADDRESS
)
[--key-reg-deposit-amt NATURAL]
--out-file FILE

Create a stake address registration certificate
Expand Down Expand Up @@ -4133,7 +4130,6 @@ Usage: cardano-cli alonzo stake-address registration-certificate
| --stake-script-file FILE
| --stake-address ADDRESS
)
[--key-reg-deposit-amt NATURAL]
--out-file FILE

Create a stake address registration certificate
Expand Down Expand Up @@ -5316,7 +5312,6 @@ Usage: cardano-cli babbage stake-address registration-certificate
| --stake-script-file FILE
| --stake-address ADDRESS
)
[--key-reg-deposit-amt NATURAL]
--out-file FILE

Create a stake address registration certificate
Expand Down Expand Up @@ -8001,7 +7996,6 @@ Usage: cardano-cli latest stake-address registration-certificate
| --stake-script-file FILE
| --stake-address ADDRESS
)
[--key-reg-deposit-amt NATURAL]
--out-file FILE

Create a stake address registration certificate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Usage: cardano-cli allegra stake-address registration-certificate
| --stake-script-file FILE
| --stake-address ADDRESS
)
[--key-reg-deposit-amt NATURAL]
--out-file FILE

Create a stake address registration certificate
Expand All @@ -16,7 +15,5 @@ Available options:
Filepath of the staking verification key.
--stake-script-file FILE Filepath of the staking script.
--stake-address ADDRESS Target stake address (bech32 format).
--key-reg-deposit-amt NATURAL
Key registration deposit amount.
--out-file FILE The output file.
-h,--help Show this help text
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Usage: cardano-cli alonzo stake-address registration-certificate
| --stake-script-file FILE
| --stake-address ADDRESS
)
[--key-reg-deposit-amt NATURAL]
--out-file FILE

Create a stake address registration certificate
Expand All @@ -16,7 +15,5 @@ Available options:
Filepath of the staking verification key.
--stake-script-file FILE Filepath of the staking script.
--stake-address ADDRESS Target stake address (bech32 format).
--key-reg-deposit-amt NATURAL
Key registration deposit amount.
--out-file FILE The output file.
-h,--help Show this help text
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Usage: cardano-cli babbage stake-address registration-certificate
| --stake-script-file FILE
| --stake-address ADDRESS
)
[--key-reg-deposit-amt NATURAL]
--out-file FILE

Create a stake address registration certificate
Expand All @@ -16,7 +15,5 @@ Available options:
Filepath of the staking verification key.
--stake-script-file FILE Filepath of the staking script.
--stake-address ADDRESS Target stake address (bech32 format).
--key-reg-deposit-amt NATURAL
Key registration deposit amount.
--out-file FILE The output file.
-h,--help Show this help text
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Usage: cardano-cli latest stake-address registration-certificate
| --stake-script-file FILE
| --stake-address ADDRESS
)
[--key-reg-deposit-amt NATURAL]
--out-file FILE

Create a stake address registration certificate
Expand All @@ -16,7 +15,5 @@ Available options:
Filepath of the staking verification key.
--stake-script-file FILE Filepath of the staking script.
--stake-address ADDRESS Target stake address (bech32 format).
--key-reg-deposit-amt NATURAL
Key registration deposit amount.
--out-file FILE The output file.
-h,--help Show this help text
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Usage: cardano-cli mary stake-address registration-certificate
| --stake-script-file FILE
| --stake-address ADDRESS
)
[--key-reg-deposit-amt NATURAL]
--out-file FILE

Create a stake address registration certificate
Expand All @@ -16,7 +15,5 @@ Available options:
Filepath of the staking verification key.
--stake-script-file FILE Filepath of the staking script.
--stake-address ADDRESS Target stake address (bech32 format).
--key-reg-deposit-amt NATURAL
Key registration deposit amount.
--out-file FILE The output file.
-h,--help Show this help text
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Usage: cardano-cli shelley stake-address registration-certificate
| --stake-script-file FILE
| --stake-address ADDRESS
)
[--key-reg-deposit-amt NATURAL]
--out-file FILE

Create a stake address registration certificate
Expand All @@ -16,7 +15,5 @@ Available options:
Filepath of the staking verification key.
--stake-script-file FILE Filepath of the staking script.
--stake-address ADDRESS Target stake address (bech32 format).
--key-reg-deposit-amt NATURAL
Key registration deposit amount.
--out-file FILE The output file.
-h,--help Show this help text

0 comments on commit a16da62

Please sign in to comment.