Skip to content

Commit

Permalink
Rename AutomaticDRepFlag to AutomaticDRepType
Browse files Browse the repository at this point in the history
  • Loading branch information
palas committed May 3, 2024
1 parent 11e581b commit 83ffe33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{-# LANGUAGE TypeApplications #-}

module Cardano.Testnet.Test.LedgerEvents.Gov.PredefinedAbstainDRep
( AutomaticDRepFlag(..)
( AutomaticDRepType(..)
, hprop_check_predefined_abstain_drep
, delegateToAutomaticDRep
, desiredPoolNumberProposalTest
Expand Down Expand Up @@ -139,7 +139,7 @@ hprop_check_predefined_abstain_drep = H.integrationWorkspace "test-activity" $ \
wallet0 Nothing [(1, "yes")] newNumberOfDesiredPools2 0 (Just newNumberOfDesiredPools2) 10

-- | Which automatic DRep to delegate to
data AutomaticDRepFlag = AlwaysAbstainDRep
data AutomaticDRepType = AlwaysAbstainDRep
| NoConfidenceDRep

delegateToAutomaticDRep
Expand All @@ -152,7 +152,7 @@ delegateToAutomaticDRep
-> ShelleyBasedEra era -- ^ The Shelley-based era (e.g., 'ConwayEra') in which the transaction will be constructed.
-> FilePath -- ^ Base directory path where generated files will be stored.
-> String -- ^ Name for the subfolder that will be created under 'work' folder.
-> AutomaticDRepFlag -- ^ Which type of automatic DRep to delegate to.
-> AutomaticDRepType -- ^ Which type of automatic DRep to delegate to.
-> PaymentKeyInfo -- ^ Wallet that will pay for the transaction.
-> StakingKeyPair -- ^ Staking key pair used for delegation.
-> m ()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import qualified Cardano.Ledger.Conway.Governance as L
import qualified Cardano.Ledger.Shelley.LedgerState as L
import Cardano.Testnet
import Cardano.Testnet.Test.LedgerEvents.Gov.PredefinedAbstainDRep
(AutomaticDRepFlag (..), delegateToAutomaticDRep, desiredPoolNumberProposalTest,
(AutomaticDRepType (..), delegateToAutomaticDRep, desiredPoolNumberProposalTest,
getDesiredPoolNumberValue, voteChangeProposal)

import Prelude
Expand Down

0 comments on commit 83ffe33

Please sign in to comment.