| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cardano.Ledger.Babbage.PParams
Contents
Description
This module contains the type of protocol parameters and EraPParams instance
Synopsis
- class AlonzoEraPParams era ⇒ BabbageEraPParams era where
- hkdCoinsPerUTxOByteL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f era) (HKD f CoinPerByte)
- newtype CoinPerByte = CoinPerByte {}
- ppCoinsPerUTxOByteL ∷ BabbageEraPParams era ⇒ Lens' (PParams era) CoinPerByte
- ppuCoinsPerUTxOByteL ∷ BabbageEraPParams era ⇒ Lens' (PParamsUpdate era) (StrictMaybe CoinPerByte)
- data BabbagePParams (f ∷ Type → Type) era = BabbagePParams {
- bppMinFeeA ∷ !(HKD f Coin)
- bppMinFeeB ∷ !(HKD f Coin)
- bppMaxBBSize ∷ !(HKD f Word32)
- bppMaxTxSize ∷ !(HKD f Word32)
- bppMaxBHSize ∷ !(HKD f Word16)
- bppKeyDeposit ∷ !(HKD f Coin)
- bppPoolDeposit ∷ !(HKD f (CompactForm Coin))
- bppEMax ∷ !(HKD f EpochInterval)
- bppNOpt ∷ !(HKD f Word16)
- bppA0 ∷ !(HKD f NonNegativeInterval)
- bppRho ∷ !(HKD f UnitInterval)
- bppTau ∷ !(HKD f UnitInterval)
- bppProtocolVersion ∷ !(HKD f ProtVer)
- bppMinPoolCost ∷ !(HKD f Coin)
- bppCoinsPerUTxOByte ∷ !(HKD f CoinPerByte)
- bppCostModels ∷ !(HKD f CostModels)
- bppPrices ∷ !(HKD f Prices)
- bppMaxTxExUnits ∷ !(HKD f OrdExUnits)
- bppMaxBlockExUnits ∷ !(HKD f OrdExUnits)
- bppMaxValSize ∷ !(HKD f Natural)
- bppCollateralPercentage ∷ !(HKD f Natural)
- bppMaxCollateralInputs ∷ !(HKD f Natural)
- emptyBabbagePParams ∷ Era era ⇒ BabbagePParams Identity era
- emptyBabbagePParamsUpdate ∷ BabbagePParams StrictMaybe era
- data DowngradeBabbagePParams (f ∷ Type → Type) = DowngradeBabbagePParams {
- dbppD ∷ !(HKD f UnitInterval)
- dbppExtraEntropy ∷ !(HKD f Nonce)
- upgradeBabbagePParams ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Bool → PParamsHKD f AlonzoEra → BabbagePParams f BabbageEra
- getLanguageView ∷ AlonzoEraPParams era ⇒ PParams era → Language → LangDepView
- data LangDepView = LangDepView {}
- encodeLangViews ∷ Set LangDepView → Encoding
- coinsPerUTxOWordToCoinsPerUTxOByte ∷ CoinPerWord → CoinPerByte
- coinsPerUTxOByteToCoinsPerUTxOWord ∷ CoinPerByte → CoinPerWord
- ppCoinsPerUTxOByte ∷ BabbageEraPParams era ⇒ PParam era
Documentation
class AlonzoEraPParams era ⇒ BabbageEraPParams era where Source #
Methods
hkdCoinsPerUTxOByteL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f era) (HKD f CoinPerByte) Source #
Instances
| BabbageEraPParams BabbageEra Source # | |
Defined in Cardano.Ledger.Babbage.PParams Methods hkdCoinsPerUTxOByteL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f CoinPerByte) Source # | |
newtype CoinPerByte Source #
Constructors
| CoinPerByte | |
Fields | |
Instances
ppCoinsPerUTxOByteL ∷ BabbageEraPParams era ⇒ Lens' (PParams era) CoinPerByte Source #
ppuCoinsPerUTxOByteL ∷ BabbageEraPParams era ⇒ Lens' (PParamsUpdate era) (StrictMaybe CoinPerByte) Source #
data BabbagePParams (f ∷ Type → Type) era Source #
Babbage Protocol parameters. Ways in which parameters have changed from Alonzo: lack
of d, extraEntropy and replacement of coinsPerUTxOWord with coinsPerUTxOByte
Constructors
| BabbagePParams | |
Fields
| |
Instances
emptyBabbagePParams ∷ Era era ⇒ BabbagePParams Identity era Source #
Returns a basic "empty" PParams structure with all zero values.
data DowngradeBabbagePParams (f ∷ Type → Type) Source #
Constructors
| DowngradeBabbagePParams | |
Fields
| |
upgradeBabbagePParams ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Bool → PParamsHKD f AlonzoEra → BabbagePParams f BabbageEra Source #
getLanguageView ∷ AlonzoEraPParams era ⇒ PParams era → Language → LangDepView Source #
data LangDepView Source #
Constructors
| LangDepView | |
Fields | |
Instances
| Generic LangDepView | |||||
Defined in Cardano.Ledger.Alonzo.PParams Associated Types
| |||||
| Show LangDepView | |||||
Defined in Cardano.Ledger.Alonzo.PParams Methods showsPrec ∷ Int → LangDepView → ShowS # show ∷ LangDepView → String # showList ∷ [LangDepView] → ShowS # | |||||
| Eq LangDepView | |||||
Defined in Cardano.Ledger.Alonzo.PParams | |||||
| Ord LangDepView | |||||
Defined in Cardano.Ledger.Alonzo.PParams Methods compare ∷ LangDepView → LangDepView → Ordering # (<) ∷ LangDepView → LangDepView → Bool # (<=) ∷ LangDepView → LangDepView → Bool # (>) ∷ LangDepView → LangDepView → Bool # (>=) ∷ LangDepView → LangDepView → Bool # max ∷ LangDepView → LangDepView → LangDepView # min ∷ LangDepView → LangDepView → LangDepView # | |||||
| NoThunks LangDepView | |||||
Defined in Cardano.Ledger.Alonzo.PParams | |||||
| type Rep LangDepView | |||||
Defined in Cardano.Ledger.Alonzo.PParams type Rep LangDepView = D1 ('MetaData "LangDepView" "Cardano.Ledger.Alonzo.PParams" "cardano-ledger-alonzo-1.15.0.0-inplace" 'False) (C1 ('MetaCons "LangDepView" 'PrefixI 'True) (S1 ('MetaSel ('Just "tag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))) | |||||
coinsPerUTxOWordToCoinsPerUTxOByte ∷ CoinPerWord → CoinPerByte Source #
A word is 8 bytes, so convert from coinsPerUTxOWord to coinsPerUTxOByte, rounding down.
coinsPerUTxOByteToCoinsPerUTxOWord ∷ CoinPerByte → CoinPerWord Source #
A word is 8 bytes, so convert from coinsPerUTxOByte to coinsPerUTxOWord.
ppCoinsPerUTxOByte ∷ BabbageEraPParams era ⇒ PParam era Source #
Orphan instances
| AlonzoEraPParams BabbageEra Source # | |||||||||||||
Methods hkdCoinsPerUTxOWordL ∷ ∀ (f ∷ Type → Type). (HKDFunctor f, ExactEra AlonzoEra BabbageEra) ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f CoinPerWord) Source # hkdCostModelsL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f CostModels) Source # hkdPricesL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f Prices) Source # hkdMaxTxExUnitsL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f ExUnits) Source # hkdMaxBlockExUnitsL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f ExUnits) Source # hkdMaxValSizeL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f Natural) Source # hkdCollateralPercentageL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f Natural) Source # hkdMaxCollateralInputsL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f Natural) Source # | |||||||||||||
| EraPParams BabbageEra Source # | |||||||||||||
Associated Types
Methods applyPPUpdates ∷ PParams BabbageEra → PParamsUpdate BabbageEra → PParams BabbageEra Source # emptyPParamsIdentity ∷ PParamsHKD Identity BabbageEra Source # emptyPParamsStrictMaybe ∷ PParamsHKD StrictMaybe BabbageEra Source # emptyUpgradePParamsUpdate ∷ UpgradePParams StrictMaybe BabbageEra Source # upgradePParamsHKD ∷ ∀ (f ∷ Type → Type). (HKDApplicative f, EraPParams (PreviousEra BabbageEra)) ⇒ UpgradePParams f BabbageEra → PParamsHKD f (PreviousEra BabbageEra) → PParamsHKD f BabbageEra Source # downgradePParamsHKD ∷ ∀ (f ∷ Type → Type). (HKDFunctor f, EraPParams (PreviousEra BabbageEra)) ⇒ DowngradePParams f BabbageEra → PParamsHKD f BabbageEra → PParamsHKD f (PreviousEra BabbageEra) Source # hkdMinFeeAL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f Coin) Source # hkdMinFeeBL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f Coin) Source # hkdMaxBBSizeL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f Word32) Source # hkdMaxTxSizeL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f Word32) Source # hkdMaxBHSizeL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f Word16) Source # hkdKeyDepositL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f Coin) Source # hkdPoolDepositCompactL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f (CompactForm Coin)) Source # hkdEMaxL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f EpochInterval) Source # hkdNOptL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f Word16) Source # hkdA0L ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f NonNegativeInterval) Source # hkdRhoL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f UnitInterval) Source # hkdTauL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f UnitInterval) Source # hkdDL ∷ ∀ (f ∷ Type → Type). (HKDFunctor f, AtMostEra "Alonzo" BabbageEra) ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f UnitInterval) Source # ppDG ∷ SimpleGetter (PParams BabbageEra) UnitInterval Source # hkdExtraEntropyL ∷ ∀ (f ∷ Type → Type). (HKDFunctor f, AtMostEra "Alonzo" BabbageEra) ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f Nonce) Source # hkdProtocolVersionL ∷ ∀ (f ∷ Type → Type). (HKDFunctor f, AtMostEra "Babbage" BabbageEra) ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f ProtVer) Source # ppProtocolVersionL ∷ Lens' (PParams BabbageEra) ProtVer Source # ppuProtocolVersionL ∷ Lens' (PParamsUpdate BabbageEra) (StrictMaybe ProtVer) Source # hkdMinUTxOValueL ∷ ∀ (f ∷ Type → Type). (HKDFunctor f, AtMostEra "Mary" BabbageEra) ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f Coin) Source # hkdMinPoolCostL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f Coin) Source # | |||||||||||||
| EraGov BabbageEra Source # | |||||||||||||
Associated Types
Methods emptyGovState ∷ GovState BabbageEra Source # curPParamsGovStateL ∷ Lens' (GovState BabbageEra) (PParams BabbageEra) Source # prevPParamsGovStateL ∷ Lens' (GovState BabbageEra) (PParams BabbageEra) Source # futurePParamsGovStateL ∷ Lens' (GovState BabbageEra) (FuturePParams BabbageEra) Source # obligationGovState ∷ GovState BabbageEra → Obligations Source # | |||||||||||||