Skip to content

Commit

Permalink
Disambiguate treasury withdrawal flags
Browse files Browse the repository at this point in the history
  • Loading branch information
carlhammann committed Oct 17, 2023
1 parent b83c58d commit 059164c
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 276 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,10 @@ pGovernanceActionTreasuryWithdrawalCmd era = do
Cmd.GovernanceActionTreasuryWithdrawalCmdArgs eon
<$> pNetwork
<*> pGovActionDeposit
<*> pAnyStakeIdentifier Nothing
<*> pAnyStakeIdentifier (Just "deposit-return")
<*> pProposalUrl
<*> pProposalHashSource
<*> many ((,) <$> pAnyStakeIdentifier Nothing <*> pTransferAmt) -- TODO we should likely pass a prefix here, becaus pAnyStakeIdentiefier is used twice
<*> many ((,) <$> pAnyStakeIdentifier (Just "funds-receiving") <*> pTransferAmt)
<*> pFileOutDirection "out-file" "Output filepath of the treasury withdrawal."
)
$ Opt.progDesc "Create a treasury withdrawal."
Expand Down
24 changes: 12 additions & 12 deletions cardano-cli/test/cardano-cli-golden/files/golden/help.cli
Original file line number Diff line number Diff line change
Expand Up @@ -6213,25 +6213,25 @@ Usage: cardano-cli conway governance action create-treasury-withdrawal
| --testnet
)
--governance-action-deposit NATURAL
( --stake-pool-verification-key STRING
| --cold-verification-key-file FILE
| --stake-pool-id STAKE_POOL_ID
| --stake-verification-key STRING
| --stake-verification-key-file FILE
| --stake-key-hash HASH
( --deposit-return-stake-pool-verification-key STRING
| --deposit-return-cold-verification-key-file FILE
| --deposit-return-stake-pool-id STAKE_POOL_ID
| --deposit-return-stake-verification-key STRING
| --deposit-return-stake-verification-key-file FILE
| --deposit-return-stake-key-hash HASH
)
--proposal-anchor-url TEXT
( --proposal-anchor-metadata TEXT
| --proposal-anchor-metadata-file FILE
| --proposal-anchor-metadata-hash HASH
)
[
( --stake-pool-verification-key STRING
| --cold-verification-key-file FILE
| --stake-pool-id STAKE_POOL_ID
| --stake-verification-key STRING
| --stake-verification-key-file FILE
| --stake-key-hash HASH
( --funds-receiving-stake-pool-verification-key STRING
| --funds-receiving-cold-verification-key-file FILE
| --funds-receiving-stake-pool-id STAKE_POOL_ID
| --funds-receiving-stake-verification-key STRING
| --funds-receiving-stake-verification-key-file FILE
| --funds-receiving-stake-key-hash HASH
)
--transfer LOVELACE]
--out-file FILE
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ Usage: cardano-cli conway governance action create-treasury-withdrawal
| --testnet
)
--governance-action-deposit NATURAL
( --stake-pool-verification-key STRING
| --cold-verification-key-file FILE
| --stake-pool-id STAKE_POOL_ID
| --stake-verification-key STRING
| --stake-verification-key-file FILE
| --stake-key-hash HASH
( --deposit-return-stake-pool-verification-key STRING
| --deposit-return-cold-verification-key-file FILE
| --deposit-return-stake-pool-id STAKE_POOL_ID
| --deposit-return-stake-verification-key STRING
| --deposit-return-stake-verification-key-file FILE
| --deposit-return-stake-key-hash HASH
)
--proposal-anchor-url TEXT
( --proposal-anchor-metadata TEXT
| --proposal-anchor-metadata-file FILE
| --proposal-anchor-metadata-hash HASH
)
[
( --stake-pool-verification-key STRING
| --cold-verification-key-file FILE
| --stake-pool-id STAKE_POOL_ID
| --stake-verification-key STRING
| --stake-verification-key-file FILE
| --stake-key-hash HASH
( --funds-receiving-stake-pool-verification-key STRING
| --funds-receiving-cold-verification-key-file FILE
| --funds-receiving-stake-pool-id STAKE_POOL_ID
| --funds-receiving-stake-verification-key STRING
| --funds-receiving-stake-verification-key-file FILE
| --funds-receiving-stake-key-hash HASH
)
--transfer LOVELACE]
--out-file FILE
Expand All @@ -33,19 +33,20 @@ Available options:
--testnet Use the testnet magic id.
--governance-action-deposit NATURAL
Deposit required to submit a governance action.
--stake-pool-verification-key STRING
--deposit-return-stake-pool-verification-key STRING
Stake pool verification key (Bech32 or hex-encoded).
--cold-verification-key-file FILE
--deposit-return-cold-verification-key-file FILE
Filepath of the stake pool verification key.
--stake-pool-id STAKE_POOL_ID
--deposit-return-stake-pool-id STAKE_POOL_ID
Stake pool ID/verification key hash (either
Bech32-encoded or hex-encoded). Zero or more
occurences of this option is allowed.
--stake-verification-key STRING
--deposit-return-stake-verification-key STRING
Stake verification key (Bech32 or hex-encoded).
--stake-verification-key-file FILE
--deposit-return-stake-verification-key-file FILE
Filepath of the staking verification key.
--stake-key-hash HASH Stake verification key hash (hex-encoded).
--deposit-return-stake-key-hash HASH
Stake verification key hash (hex-encoded).
--proposal-anchor-url TEXT
Proposal anchor URL
--proposal-anchor-metadata TEXT
Expand All @@ -54,19 +55,20 @@ Available options:
Proposal anchor contents as a text file.
--proposal-anchor-metadata-hash HASH
Proposal anchor data hash.
--stake-pool-verification-key STRING
--funds-receiving-stake-pool-verification-key STRING
Stake pool verification key (Bech32 or hex-encoded).
--cold-verification-key-file FILE
--funds-receiving-cold-verification-key-file FILE
Filepath of the stake pool verification key.
--stake-pool-id STAKE_POOL_ID
--funds-receiving-stake-pool-id STAKE_POOL_ID
Stake pool ID/verification key hash (either
Bech32-encoded or hex-encoded). Zero or more
occurences of this option is allowed.
--stake-verification-key STRING
--funds-receiving-stake-verification-key STRING
Stake verification key (Bech32 or hex-encoded).
--stake-verification-key-file FILE
--funds-receiving-stake-verification-key-file FILE
Filepath of the staking verification key.
--stake-key-hash HASH Stake verification key hash (hex-encoded).
--funds-receiving-stake-key-hash HASH
Stake verification key hash (hex-encoded).
--transfer LOVELACE The amount to transfer.
--out-file FILE Output filepath of the treasury withdrawal.
-h,--help Show this help text

This file was deleted.

Loading

0 comments on commit 059164c

Please sign in to comment.