Skip to content
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
description: Fix help messages in anchor hashing functions to display the right protocols
supported
Comment on lines +1 to +2
kind:
- bugfix
pr: 1396
project: cardano-cli
Original file line number Diff line number Diff line change
Expand Up @@ -186,5 +186,8 @@ pDRepMetadataSource :: Parser DRepMetadataSource
pDRepMetadataSource =
asum
[ DrepMetadataFileIn <$> pFileInDirection "drep-metadata-file" "JSON Metadata file to hash."
, DrepMetadataURL <$> pUrl "drep-metadata-url" "URL pointing to the JSON Metadata file to hash."
, DrepMetadataURL
<$> pUrl
"drep-metadata-url"
"URL pointing to the JSON Metadata file to hash. Supported schemes are: file, http, https, ipfs."
]
4 changes: 3 additions & 1 deletion cardano-cli/src/Cardano/CLI/EraBased/StakePool/Option.hs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ pPoolMetadataSource =
F.asum
[ Cmd.StakePoolMetadataFileIn <$> pPoolMetadataFile
, Cmd.StakePoolMetadataURL
<$> pUrl "pool-metadata-url" "URL pointing to the JSON Metadata file to hash."
<$> pUrl
"pool-metadata-url"
"URL pointing to the JSON Metadata file to hash. Supported schemes are: file, http, https, ipfs."
]

pPoolMetadataHashGoal :: Parser (Cmd.HashGoal (Hash StakePoolMetadata))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pAnchorDataHashSource =
, Cmd.AnchorDataHashSourceTextFile
<$> pFileInDirection "file-text" "Text file to hash"
, Cmd.AnchorDataHashSourceURL
<$> pUrl "url" "A URL to the file to hash (HTTP(S) and IPFS only)"
<$> pUrl "url" "A URL to the file to hash. Supported schemes are: file, http, https, ipfs."
]

pHashScriptCmd :: Parser Cmd.HashCmds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Available options:
--drep-metadata-file FILEPATH
JSON Metadata file to hash.
--drep-metadata-url TEXT URL pointing to the JSON Metadata file to hash.
Supported schemes are: file, http, https, ipfs.
--expected-hash HASH Expected hash for the DRep metadata, for verification
purposes. If provided, the hash of the DRep metadata
will be compared to this value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Available options:
--drep-metadata-file FILEPATH
JSON Metadata file to hash.
--drep-metadata-url TEXT URL pointing to the JSON Metadata file to hash.
Supported schemes are: file, http, https, ipfs.
--expected-hash HASH Expected hash for the DRep metadata, for verification
purposes. If provided, the hash of the DRep metadata
will be compared to this value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Available options:
--pool-metadata-file FILEPATH
Filepath of the pool metadata.
--pool-metadata-url TEXT URL pointing to the JSON Metadata file to hash.
Supported schemes are: file, http, https, ipfs.
--expected-hash HASH Expected hash for the stake pool metadata, for
verification purposes. If provided, the hash of the
stake pool metadata will be compared to this value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ Available options:
--text TEXT Text to hash as UTF-8
--file-binary FILEPATH Binary file to hash
--file-text FILEPATH Text file to hash
--url TEXT A URL to the file to hash (HTTP(S) and IPFS only)
--url TEXT A URL to the file to hash. Supported schemes are:
file, http, https, ipfs.
--expected-hash HASH Expected hash for the anchor data, for verification
purposes. If provided, the hash of the anchor data
will be compared to this value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Available options:
--drep-metadata-file FILEPATH
JSON Metadata file to hash.
--drep-metadata-url TEXT URL pointing to the JSON Metadata file to hash.
Supported schemes are: file, http, https, ipfs.
--expected-hash HASH Expected hash for the DRep metadata, for verification
purposes. If provided, the hash of the DRep metadata
will be compared to this value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Available options:
--pool-metadata-file FILEPATH
Filepath of the pool metadata.
--pool-metadata-url TEXT URL pointing to the JSON Metadata file to hash.
Supported schemes are: file, http, https, ipfs.
--expected-hash HASH Expected hash for the stake pool metadata, for
verification purposes. If provided, the hash of the
stake pool metadata will be compared to this value.
Expand Down
Loading