Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make drep query parser accept zero or more keys #348

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cardano-cli/src/Cardano/CLI/EraBased/Options/Query.hs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ pQueryDRepStateCmd era envCli = do
<$> pSocketPath envCli
<*> pConsensusModeParams
<*> pNetworkId envCli
<*> some pDRepVerificationKeyOrHashOrFile
<*> many pDRepVerificationKeyOrHashOrFile
<*> optional pOutputFile

pQueryDRepStakeDistributionCmd :: ()
Expand All @@ -353,7 +353,7 @@ pQueryDRepStakeDistributionCmd era envCli = do
<$> pSocketPath envCli
<*> pConsensusModeParams
<*> pNetworkId envCli
<*> some pDRepVerificationKeyOrHashOrFile
<*> many pDRepVerificationKeyOrHashOrFile
<*> optional pOutputFile

pQueryGetCommitteeStateCmd :: ()
Expand Down
8 changes: 4 additions & 4 deletions cardano-cli/test/cardano-cli-golden/files/golden/help.cli
Original file line number Diff line number Diff line change
Expand Up @@ -6880,10 +6880,10 @@ Usage: cardano-cli conway query drep-state --socket-path SOCKET_PATH
( --mainnet
| --testnet-magic NATURAL
)
( --drep-verification-key STRING
[ --drep-verification-key STRING
| --drep-verification-key-file FILE
| --drep-key-hash HASH
)
]
[--out-file FILE]

Get the DRep state. If no DRep credentials are provided, return states for all
Expand All @@ -6900,10 +6900,10 @@ Usage: cardano-cli conway query drep-stake-distribution
( --mainnet
| --testnet-magic NATURAL
)
( --drep-verification-key STRING
[ --drep-verification-key STRING
| --drep-verification-key-file FILE
| --drep-key-hash HASH
)
]
[--out-file FILE]

Get the DRep stake distribution. If no DRep credentials are provided, return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Usage: cardano-cli conway query drep-stake-distribution
( --mainnet
| --testnet-magic NATURAL
)
( --drep-verification-key STRING
[ --drep-verification-key STRING
| --drep-verification-key-file FILE
| --drep-key-hash HASH
)
]
[--out-file FILE]

Get the DRep stake distribution. If no DRep credentials are provided, return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ Usage: cardano-cli conway query drep-state --socket-path SOCKET_PATH
( --mainnet
| --testnet-magic NATURAL
)
( --drep-verification-key STRING
[ --drep-verification-key STRING
| --drep-verification-key-file FILE
| --drep-key-hash HASH
)
]
[--out-file FILE]

Get the DRep state. If no DRep credentials are provided, return states for all
Expand Down