@@ -409,30 +409,21 @@ registerSingleSpo identifier tap@(TmpAbsolutePath tempAbsPath') nodeConfigFile s
409
409
-- | Generates Stake Pool Operator (SPO) voting files (without signing)
410
410
-- using @cardano-cli@.
411
411
--
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").
425
412
--
426
413
-- Returns a list of generated @File VoteFile In@ representing the paths to
427
414
-- the generated voting files.
428
415
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").
436
427
-> m [File VoteFile In ]
437
428
generateVoteFiles ceo execConfig work prefix governanceActionTxId governanceActionIndex allVotes = do
438
429
baseDir <- H. createDirectoryIfMissing $ work </> prefix
0 commit comments