Skip to content

Commit e82f9f3

Browse files
committed
Added Haddocks to arguments for several functions
1 parent 0ca06c8 commit e82f9f3

File tree

1 file changed

+37
-32
lines changed

1 file changed

+37
-32
lines changed

cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs

Lines changed: 37 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,16 @@ hprop_check_predefined_abstain_drep = H.integrationWorkspace "test-activity" $ \
123123

124124
delegateToAlwaysAbstain
125125
:: (HasCallStack, MonadTest m, MonadIO m, H.MonadAssertion m, MonadCatch m)
126-
=> H.ExecConfig
127-
-> EpochStateView
128-
-> FilePath
129-
-> FilePath
130-
-> ShelleyBasedEra ConwayEra
131-
-> FilePath
132-
-> String
133-
-> PaymentKeyInfo
134-
-> StakingKeyPair
126+
=> H.ExecConfig -- ^ Specifies the CLI execution configuration.
127+
-> EpochStateView -- ^ Current epoch state view for transaction building. It can be obtained
128+
-- using the 'getEpochStateView' function.
129+
-> FilePath -- ^ Path to the node configuration file as returned by 'cardanoTestnetDefault'.
130+
-> FilePath -- ^ Path to the cardano-node unix socket file.
131+
-> ShelleyBasedEra ConwayEra -- ^ The Shelley-based era (e.g., 'ConwayEra') in which the transaction will be constructed.
132+
-> FilePath -- ^ Base directory path where generated files will be stored.
133+
-> String -- ^ Name for the subfolder that will be created under 'work' folder.
134+
-> PaymentKeyInfo -- ^ Wallet that will pay for the transaction.
135+
-> StakingKeyPair -- ^ Staking key pair used for delegation.
135136
-> m ()
136137
delegateToAlwaysAbstain execConfig epochStateView configurationFile socketPath sbe work prefix
137138
payingWallet skeyPair@(StakingKeyPair vKeyFile _sKeyFile) = do
@@ -168,19 +169,21 @@ delegateToAlwaysAbstain execConfig epochStateView configurationFile socketPath s
168169

169170
desiredPoolNumberProposalTest
170171
:: (HasCallStack, MonadTest m, MonadIO m, H.MonadAssertion m, MonadCatch m, Foldable t)
171-
=> H.ExecConfig
172-
-> EpochStateView
173-
-> FilePath
174-
-> FilePath
175-
-> ConwayEraOnwards ConwayEra
176-
-> FilePath
177-
-> FilePath
178-
-> PaymentKeyInfo
179-
-> Maybe (String, Word32)
180-
-> t (Int, String)
181-
-> Integer
182-
-> Integer
183-
-> Integer
172+
=> H.ExecConfig -- ^ Specifies the CLI execution configuration.
173+
-> EpochStateView -- ^ Current epoch state view for transaction building. It can be obtained
174+
-> FilePath -- ^ Path to the node configuration file as returned by 'cardanoTestnetDefault'.
175+
-> FilePath -- ^ Path to the cardano-node unix socket file.
176+
-> ConwayEraOnwards ConwayEra -- ^ The ConwaysEraOnwards witness for the Conway era
177+
-> FilePath -- ^ Base directory path where generated files will be stored.
178+
-> String -- ^ Name for the subfolder that will be created under 'work' folder.
179+
-> PaymentKeyInfo -- ^ Wallet that will pay for the transaction.
180+
-> Maybe (String, Word32) -- ^ The transaction identifier and index of the previous passed
181+
-- governance action if any.
182+
-> t (Int, String) -- ^ Model of votes to issue as a list of pairs of amount of each vote
183+
-- together with the vote (i.e: "yes", "no", "abstain")
184+
-> Integer -- ^ What to change the @desiredPoolNumber@ to
185+
-> Integer -- ^ What the expected result is of the change
186+
-> Integer -- ^ How many epochs to wait before checking the result
184187
-> m (String, Word32)
185188
desiredPoolNumberProposalTest execConfig epochStateView configurationFile socketPath ceo work prefix
186189
wallet previousProposalInfo votes change expected epochsToWait = do
@@ -211,16 +214,18 @@ desiredPoolNumberProposalTest execConfig epochStateView configurationFile socket
211214

212215
makeDesiredPoolNumberChangeProposal
213216
:: (HasCallStack, H.MonadAssertion m, MonadTest m, MonadCatch m, MonadIO m)
214-
=> H.ExecConfig
215-
-> EpochStateView
216-
-> NodeConfigFile 'In
217-
-> SocketPath
218-
-> ConwayEraOnwards ConwayEra
219-
-> FilePath
220-
-> String
221-
-> Maybe (String, Word32)
222-
-> Word32
223-
-> PaymentKeyInfo
217+
=> H.ExecConfig -- ^ Specifies the CLI execution configuration.
218+
-> EpochStateView -- ^ Current epoch state view for transaction building. It can be obtained
219+
-> NodeConfigFile 'In -- ^ Absolute path to the "configuration.yaml" file for the testnet
220+
-- as returned by the 'cardanoTestnetDefault' function.
221+
-> SocketPath -- ^ Path to the cardano-node unix socket file.
222+
-> ConwayEraOnwards ConwayEra -- ^ The conway era onwards witness for the era in which the transaction will be constructed.
223+
-> FilePath -- ^ Base directory path where generated files will be stored.
224+
-> String -- ^ Name for the subfolder that will be created under 'work' folder.
225+
-> Maybe (String, Word32) -- ^ The transaction identifier and index of the previous passed
226+
-- governance action if any.
227+
-> Word32 -- ^ What to change the @desiredPoolNumber@ to
228+
-> PaymentKeyInfo -- ^ Wallet that will pay for the transaction.
224229
-> m (String, Word32)
225230
makeDesiredPoolNumberChangeProposal execConfig epochStateView configurationFile socketPath
226231
ceo work prefix prevGovActionInfo desiredPoolNumber wallet = do

0 commit comments

Comments
 (0)