Skip to content

Commit 6fe90b4

Browse files
committed
Move generateVoteFiles's description to parameters' Haddocks
1 parent eafabbd commit 6fe90b4

File tree

1 file changed

+11
-20
lines changed
  • cardano-testnet/src/Testnet/Components

1 file changed

+11
-20
lines changed

cardano-testnet/src/Testnet/Components/SPO.hs

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -409,30 +409,21 @@ registerSingleSpo identifier tap@(TmpAbsolutePath tempAbsPath') nodeConfigFile s
409409
-- | Generates Stake Pool Operator (SPO) voting files (without signing)
410410
-- using @cardano-cli@.
411411
--
412-
-- This function takes the following parameters:
413-
--
414-
-- * 'ceo': The conway era onwards witness for the era in which the transaction will be constructed.
415-
-- * 'execConfig': Specifies the CLI execution configuration.
416-
-- * 'work': Base directory path where the voting files and directories will be
417-
-- stored.
418-
-- * 'prefix': Name for the subfolder that will be created under 'work' to store
419-
-- the output voting files.
420-
-- * 'governanceActionTxId': Transaction ID string of the governance action.
421-
-- * 'governanceActionIndex': Index of the governance action.
422-
-- * 'allVotes': List of tuples where each tuple contains a 'PoolNodeKeys'
423-
-- representing the SPO keys and a 'String' representing the
424-
-- vote type (i.e: "yes", "no", or "abstain").
425412
--
426413
-- Returns a list of generated @File VoteFile In@ representing the paths to
427414
-- the generated voting files.
428415
generateVoteFiles :: (MonadTest m, MonadIO m, MonadCatch m)
429-
=> ConwayEraOnwards era
430-
-> H.ExecConfig
431-
-> FilePath
432-
-> String
433-
-> String
434-
-> Word32
435-
-> [(PoolNodeKeys, [Char])]
416+
=> ConwayEraOnwards era -- ^ The conway era onwards witness for the era in which the transaction will be constructed.
417+
-> H.ExecConfig -- ^ Specifies the CLI execution configuration.
418+
-> FilePath -- ^ Base directory path where the voting files and directories will be
419+
-- stored
420+
-> String -- ^ Name for the subfolder that will be created under 'work' to store
421+
-- the output voting files.
422+
-> String -- ^ Transaction ID string of the governance action.
423+
-> Word32 -- ^ Index of the governance action.
424+
-> [(PoolNodeKeys, [Char])] -- ^ List of tuples where each tuple contains a 'PoolNodeKeys'
425+
-- representing the SPO keys and a 'String' representing the
426+
-- vote type (i.e: "yes", "no", or "abstain").
436427
-> m [File VoteFile In]
437428
generateVoteFiles ceo execConfig work prefix governanceActionTxId governanceActionIndex allVotes = do
438429
baseDir <- H.createDirectoryIfMissing $ work </> prefix

0 commit comments

Comments
 (0)