Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module contains the type of protocol parameters and EraPParams instance
Synopsis
- class BabbageEraPParams era ⇒ ConwayEraPParams era where
- modifiedPPGroups ∷ PParamsUpdate era → Set PPGroups
- ppuWellFormed ∷ ProtVer → PParamsUpdate era → Bool
- hkdPoolVotingThresholdsL ∷ HKDFunctor f ⇒ Lens' (PParamsHKD f era) (HKD f PoolVotingThresholds)
- hkdDRepVotingThresholdsL ∷ HKDFunctor f ⇒ Lens' (PParamsHKD f era) (HKD f DRepVotingThresholds)
- hkdCommitteeMinSizeL ∷ HKDFunctor f ⇒ Lens' (PParamsHKD f era) (HKD f Natural)
- hkdCommitteeMaxTermLengthL ∷ HKDFunctor f ⇒ Lens' (PParamsHKD f era) (HKD f EpochInterval)
- hkdGovActionLifetimeL ∷ HKDFunctor f ⇒ Lens' (PParamsHKD f era) (HKD f EpochInterval)
- hkdGovActionDepositL ∷ HKDFunctor f ⇒ Lens' (PParamsHKD f era) (HKD f Coin)
- hkdDRepDepositL ∷ HKDFunctor f ⇒ Lens' (PParamsHKD f era) (HKD f Coin)
- hkdDRepActivityL ∷ HKDFunctor f ⇒ Lens' (PParamsHKD f era) (HKD f EpochInterval)
- hkdMinFeeRefScriptCostPerByteL ∷ HKDFunctor f ⇒ Lens' (PParamsHKD f era) (HKD f NonNegativeInterval)
- ppPoolVotingThresholdsL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParams era) PoolVotingThresholds
- ppDRepVotingThresholdsL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParams era) DRepVotingThresholds
- ppCommitteeMinSizeL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParams era) Natural
- ppCommitteeMaxTermLengthL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParams era) EpochInterval
- ppGovActionLifetimeL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParams era) EpochInterval
- ppGovActionDepositL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParams era) Coin
- ppDRepDepositL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParams era) Coin
- ppDRepActivityL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParams era) EpochInterval
- ppMinFeeRefScriptCostPerByteL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParams era) NonNegativeInterval
- ppuPoolVotingThresholdsL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParamsUpdate era) (StrictMaybe PoolVotingThresholds)
- ppuDRepVotingThresholdsL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParamsUpdate era) (StrictMaybe DRepVotingThresholds)
- ppuCommitteeMinSizeL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParamsUpdate era) (StrictMaybe Natural)
- ppuCommitteeMaxTermLengthL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParamsUpdate era) (StrictMaybe EpochInterval)
- ppuGovActionLifetimeL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParamsUpdate era) (StrictMaybe EpochInterval)
- ppuGovActionDepositL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParamsUpdate era) (StrictMaybe Coin)
- ppuDRepDepositL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParamsUpdate era) (StrictMaybe Coin)
- ppuDRepActivityL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParamsUpdate era) (StrictMaybe EpochInterval)
- ppuMinFeeRefScriptCostPerByteL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParamsUpdate era) (StrictMaybe NonNegativeInterval)
- data PoolVotingThresholds = PoolVotingThresholds {}
- pvtCommitteeNoConfidenceL ∷ Lens' PoolVotingThresholds UnitInterval
- pvtCommitteeNormalL ∷ Lens' PoolVotingThresholds UnitInterval
- pvtPPSecurityGroupL ∷ Lens' PoolVotingThresholds UnitInterval
- data DRepVotingThresholds = DRepVotingThresholds {
- dvtMotionNoConfidence ∷ !UnitInterval
- dvtCommitteeNormal ∷ !UnitInterval
- dvtCommitteeNoConfidence ∷ !UnitInterval
- dvtUpdateToConstitution ∷ !UnitInterval
- dvtHardForkInitiation ∷ !UnitInterval
- dvtPPNetworkGroup ∷ !UnitInterval
- dvtPPEconomicGroup ∷ !UnitInterval
- dvtPPTechnicalGroup ∷ !UnitInterval
- dvtPPGovGroup ∷ !UnitInterval
- dvtTreasuryWithdrawal ∷ !UnitInterval
- dvtCommitteeNoConfidenceL ∷ Lens' DRepVotingThresholds UnitInterval
- dvtCommitteeNormalL ∷ Lens' DRepVotingThresholds UnitInterval
- dvtHardForkInitiationL ∷ Lens' DRepVotingThresholds UnitInterval
- dvtMotionNoConfidenceL ∷ Lens' DRepVotingThresholds UnitInterval
- dvtPPNetworkGroupL ∷ Lens' DRepVotingThresholds UnitInterval
- dvtPPGovGroupL ∷ Lens' DRepVotingThresholds UnitInterval
- dvtPPTechnicalGroupL ∷ Lens' DRepVotingThresholds UnitInterval
- dvtPPEconomicGroupL ∷ Lens' DRepVotingThresholds UnitInterval
- dvtTreasuryWithdrawalL ∷ Lens' DRepVotingThresholds UnitInterval
- dvtUpdateToConstitutionL ∷ Lens' DRepVotingThresholds UnitInterval
- data ConwayPParams f era = ConwayPParams {
- cppMinFeeA ∷ !(THKD ('PPGroups 'EconomicGroup 'SecurityGroup) f Coin)
- cppMinFeeB ∷ !(THKD ('PPGroups 'EconomicGroup 'SecurityGroup) f Coin)
- cppMaxBBSize ∷ !(THKD ('PPGroups 'NetworkGroup 'SecurityGroup) f Word32)
- cppMaxTxSize ∷ !(THKD ('PPGroups 'NetworkGroup 'SecurityGroup) f Word32)
- cppMaxBHSize ∷ !(THKD ('PPGroups 'NetworkGroup 'SecurityGroup) f Word16)
- cppKeyDeposit ∷ !(THKD ('PPGroups 'EconomicGroup 'NoStakePoolGroup) f Coin)
- cppPoolDeposit ∷ !(THKD ('PPGroups 'EconomicGroup 'NoStakePoolGroup) f Coin)
- cppEMax ∷ !(THKD ('PPGroups 'TechnicalGroup 'NoStakePoolGroup) f EpochInterval)
- cppNOpt ∷ !(THKD ('PPGroups 'TechnicalGroup 'NoStakePoolGroup) f Word16)
- cppA0 ∷ !(THKD ('PPGroups 'TechnicalGroup 'NoStakePoolGroup) f NonNegativeInterval)
- cppRho ∷ !(THKD ('PPGroups 'EconomicGroup 'NoStakePoolGroup) f UnitInterval)
- cppTau ∷ !(THKD ('PPGroups 'EconomicGroup 'NoStakePoolGroup) f UnitInterval)
- cppProtocolVersion ∷ !(HKDNoUpdate f ProtVer)
- cppMinPoolCost ∷ !(THKD ('PPGroups 'EconomicGroup 'NoStakePoolGroup) f Coin)
- cppCoinsPerUTxOByte ∷ !(THKD ('PPGroups 'EconomicGroup 'SecurityGroup) f CoinPerByte)
- cppCostModels ∷ !(THKD ('PPGroups 'TechnicalGroup 'NoStakePoolGroup) f CostModels)
- cppPrices ∷ !(THKD ('PPGroups 'EconomicGroup 'NoStakePoolGroup) f Prices)
- cppMaxTxExUnits ∷ !(THKD ('PPGroups 'NetworkGroup 'NoStakePoolGroup) f OrdExUnits)
- cppMaxBlockExUnits ∷ !(THKD ('PPGroups 'NetworkGroup 'SecurityGroup) f OrdExUnits)
- cppMaxValSize ∷ !(THKD ('PPGroups 'NetworkGroup 'SecurityGroup) f Word32)
- cppCollateralPercentage ∷ !(THKD ('PPGroups 'TechnicalGroup 'NoStakePoolGroup) f Word16)
- cppMaxCollateralInputs ∷ !(THKD ('PPGroups 'NetworkGroup 'NoStakePoolGroup) f Word16)
- cppPoolVotingThresholds ∷ !(THKD ('PPGroups 'GovGroup 'NoStakePoolGroup) f PoolVotingThresholds)
- cppDRepVotingThresholds ∷ !(THKD ('PPGroups 'GovGroup 'NoStakePoolGroup) f DRepVotingThresholds)
- cppCommitteeMinSize ∷ !(THKD ('PPGroups 'GovGroup 'NoStakePoolGroup) f Word16)
- cppCommitteeMaxTermLength ∷ !(THKD ('PPGroups 'GovGroup 'NoStakePoolGroup) f EpochInterval)
- cppGovActionLifetime ∷ !(THKD ('PPGroups 'GovGroup 'NoStakePoolGroup) f EpochInterval)
- cppGovActionDeposit ∷ !(THKD ('PPGroups 'GovGroup 'SecurityGroup) f Coin)
- cppDRepDeposit ∷ !(THKD ('PPGroups 'GovGroup 'NoStakePoolGroup) f Coin)
- cppDRepActivity ∷ !(THKD ('PPGroups 'GovGroup 'NoStakePoolGroup) f EpochInterval)
- cppMinFeeRefScriptCostPerByte ∷ !(THKD ('PPGroups 'EconomicGroup 'SecurityGroup) f NonNegativeInterval)
- getLanguageView ∷ AlonzoEraPParams era ⇒ PParams era → Language → LangDepView
- data LangDepView = LangDepView {}
- encodeLangViews ∷ Set LangDepView → Encoding
- upgradeConwayPParams ∷ ∀ f c. HKDApplicative f ⇒ UpgradeConwayPParams f → PParamsHKD f (BabbageEra c) → ConwayPParams f (ConwayEra c)
- data UpgradeConwayPParams f = UpgradeConwayPParams {
- ucppPoolVotingThresholds ∷ !(HKD f PoolVotingThresholds)
- ucppDRepVotingThresholds ∷ !(HKD f DRepVotingThresholds)
- ucppCommitteeMinSize ∷ !(HKD f Word16)
- ucppCommitteeMaxTermLength ∷ !(HKD f EpochInterval)
- ucppGovActionLifetime ∷ !(HKD f EpochInterval)
- ucppGovActionDeposit ∷ !(HKD f Coin)
- ucppDRepDeposit ∷ !(HKD f Coin)
- ucppDRepActivity ∷ !(HKD f EpochInterval)
- ucppMinFeeRefScriptCostPerByte ∷ !(HKD f NonNegativeInterval)
- ucppPlutusV3CostModel ∷ !(HKD f CostModel)
- toUpgradeConwayPParamsUpdatePairs ∷ KeyValue e a ⇒ UpgradeConwayPParams Identity → [a]
- newtype THKD (t ∷ PPGroups) f a = THKD {}
- data DRepGroup
- data PPGroups = PPGroups DRepGroup StakePoolGroup
- data StakePoolGroup
- conwayModifiedPPGroups ∷ ConwayPParams StrictMaybe era → Set PPGroups
- pvtHardForkInitiationL ∷ Lens' PoolVotingThresholds UnitInterval
- pvtMotionNoConfidenceL ∷ Lens' PoolVotingThresholds UnitInterval
Documentation
class BabbageEraPParams era ⇒ ConwayEraPParams era where Source #
modifiedPPGroups ∷ PParamsUpdate era → Set PPGroups Source #
ppuWellFormed ∷ ProtVer → PParamsUpdate era → Bool Source #
hkdPoolVotingThresholdsL ∷ HKDFunctor f ⇒ Lens' (PParamsHKD f era) (HKD f PoolVotingThresholds) Source #
hkdDRepVotingThresholdsL ∷ HKDFunctor f ⇒ Lens' (PParamsHKD f era) (HKD f DRepVotingThresholds) Source #
hkdCommitteeMinSizeL ∷ HKDFunctor f ⇒ Lens' (PParamsHKD f era) (HKD f Natural) Source #
hkdCommitteeMaxTermLengthL ∷ HKDFunctor f ⇒ Lens' (PParamsHKD f era) (HKD f EpochInterval) Source #
hkdGovActionLifetimeL ∷ HKDFunctor f ⇒ Lens' (PParamsHKD f era) (HKD f EpochInterval) Source #
hkdGovActionDepositL ∷ HKDFunctor f ⇒ Lens' (PParamsHKD f era) (HKD f Coin) Source #
hkdDRepDepositL ∷ HKDFunctor f ⇒ Lens' (PParamsHKD f era) (HKD f Coin) Source #
hkdDRepActivityL ∷ HKDFunctor f ⇒ Lens' (PParamsHKD f era) (HKD f EpochInterval) Source #
hkdMinFeeRefScriptCostPerByteL ∷ HKDFunctor f ⇒ Lens' (PParamsHKD f era) (HKD f NonNegativeInterval) Source #
Instances
ppPoolVotingThresholdsL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParams era) PoolVotingThresholds Source #
ppDRepVotingThresholdsL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParams era) DRepVotingThresholds Source #
ppCommitteeMinSizeL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParams era) Natural Source #
ppCommitteeMaxTermLengthL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParams era) EpochInterval Source #
ppGovActionLifetimeL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParams era) EpochInterval Source #
ppGovActionDepositL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParams era) Coin Source #
ppDRepDepositL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParams era) Coin Source #
ppDRepActivityL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParams era) EpochInterval Source #
ppMinFeeRefScriptCostPerByteL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParams era) NonNegativeInterval Source #
ppuPoolVotingThresholdsL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParamsUpdate era) (StrictMaybe PoolVotingThresholds) Source #
ppuDRepVotingThresholdsL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParamsUpdate era) (StrictMaybe DRepVotingThresholds) Source #
ppuCommitteeMinSizeL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParamsUpdate era) (StrictMaybe Natural) Source #
ppuCommitteeMaxTermLengthL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParamsUpdate era) (StrictMaybe EpochInterval) Source #
ppuGovActionLifetimeL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParamsUpdate era) (StrictMaybe EpochInterval) Source #
ppuGovActionDepositL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParamsUpdate era) (StrictMaybe Coin) Source #
ppuDRepDepositL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParamsUpdate era) (StrictMaybe Coin) Source #
ppuDRepActivityL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParamsUpdate era) (StrictMaybe EpochInterval) Source #
ppuMinFeeRefScriptCostPerByteL ∷ ∀ era. ConwayEraPParams era ⇒ Lens' (PParamsUpdate era) (StrictMaybe NonNegativeInterval) Source #
data PoolVotingThresholds Source #
Instances
data DRepVotingThresholds Source #
Instances
data ConwayPParams f era Source #
Conway Protocol parameters. The following parameters have been added since Babbage:
* poolVotingThresholds
* dRepVotingThresholds
* committeeMinSize
* committeeMaxTermLength
* govActionLifetime
* govActionDeposit
* dRepDeposit
* dRepActivity
Instances
getLanguageView ∷ AlonzoEraPParams era ⇒ PParams era → Language → LangDepView Source #
data LangDepView Source #
Instances
upgradeConwayPParams ∷ ∀ f c. HKDApplicative f ⇒ UpgradeConwayPParams f → PParamsHKD f (BabbageEra c) → ConwayPParams f (ConwayEra c) Source #
data UpgradeConwayPParams f Source #
UpgradeConwayPParams | |
|
Instances
toUpgradeConwayPParamsUpdatePairs ∷ KeyValue e a ⇒ UpgradeConwayPParams Identity → [a] Source #
newtype THKD (t ∷ PPGroups) f a Source #
HKD that is tagged with a group
Instances
Protocol parameter groups that dictate different thresholds for DReps.
Instances
Show DRepGroup Source # | |
Eq DRepGroup Source # | |
Ord DRepGroup Source # | |
Defined in Cardano.Ledger.Conway.PParams |
Instances
Show PPGroups Source # | |
Eq PPGroups Source # | |
Ord PPGroups Source # | |
Defined in Cardano.Ledger.Conway.PParams |
data StakePoolGroup Source #
Instances
Show StakePoolGroup Source # | |
Defined in Cardano.Ledger.Conway.PParams | |
Eq StakePoolGroup Source # | |
Defined in Cardano.Ledger.Conway.PParams (==) ∷ StakePoolGroup → StakePoolGroup → Bool Source # (/=) ∷ StakePoolGroup → StakePoolGroup → Bool Source # | |
Ord StakePoolGroup Source # | |
Defined in Cardano.Ledger.Conway.PParams compare ∷ StakePoolGroup → StakePoolGroup → Ordering Source # (<) ∷ StakePoolGroup → StakePoolGroup → Bool Source # (<=) ∷ StakePoolGroup → StakePoolGroup → Bool Source # (>) ∷ StakePoolGroup → StakePoolGroup → Bool Source # (>=) ∷ StakePoolGroup → StakePoolGroup → Bool Source # max ∷ StakePoolGroup → StakePoolGroup → StakePoolGroup Source # min ∷ StakePoolGroup → StakePoolGroup → StakePoolGroup Source # |