cardano-ledger-babbage-0.1.0.0: TODO
Safe Haskell None
Language Haskell2010

Cardano.Ledger.Babbage.PParams

Description

This module contains just the type of protocol parameters.

Synopsis

Documentation

data PParams' f era Source #

Protocol parameters. Alonzo parameters without d and extraEntropy

Constructors

PParams

Fields

Instances

Instances details
HasField "_d" ( PParams era) UnitInterval Source #

Since Babbage removes the _d field from PParams, we provide this HasField instance which defaults _d to '0' in order to reuse code for the reward calculation.

Instance details

Defined in Cardano.Ledger.Babbage.PParams

Era era => ToCBOR ( PParams era) Source #
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Era era => ToCBOR ( PParamsUpdate era) Source #
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Era era => FromCBOR ( PParams era) Source #
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Era era => FromCBOR ( PParamsUpdate era) Source #
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Default ( PParams era) Source #
Instance details

Defined in Cardano.Ledger.Babbage.PParams

NoThunks ( PParams era) Source #
Instance details

Defined in Cardano.Ledger.Babbage.PParams

NoThunks ( PParamsUpdate era) Source #
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Eq ( PParams' Identity era) Source #
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Eq ( PParams' StrictMaybe era) Source #
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Ord ( PParams' StrictMaybe era) Source #

Since ExUnits does not have an Ord instance, we have to roll this Ord instance by hand. IF THE ORDER OR TYPES OF THE FIELDS OF PParams changes, this instance may need adusting.

Instance details

Defined in Cardano.Ledger.Babbage.PParams

Show ( PParams' Identity era) Source #
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Show ( PParams' StrictMaybe era) Source #
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Generic ( PParams' f era) Source #
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Associated Types

type Rep ( PParams' f era) :: Type -> Type Source #

NFData ( PParams' Identity era) Source #
Instance details

Defined in Cardano.Ledger.Babbage.PParams

NFData ( PParams' StrictMaybe era) Source #
Instance details

Defined in Cardano.Ledger.Babbage.PParams

type Rep ( PParams' f era) Source #
Instance details

Defined in Cardano.Ledger.Babbage.PParams

type Rep ( PParams' f era) = D1 (' MetaData "PParams'" "Cardano.Ledger.Babbage.PParams" "cardano-ledger-babbage-0.1.0.0-GkVGYtncGy0GivWLPWPSFA" ' False ) ( C1 (' MetaCons "PParams" ' PrefixI ' True ) (((( S1 (' MetaSel (' Just "_minfeeA") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f Natural )) :*: S1 (' MetaSel (' Just "_minfeeB") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f Natural ))) :*: ( S1 (' MetaSel (' Just "_maxBBSize") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f Natural )) :*: ( S1 (' MetaSel (' Just "_maxTxSize") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f Natural )) :*: S1 (' MetaSel (' Just "_maxBHSize") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f Natural ))))) :*: (( S1 (' MetaSel (' Just "_keyDeposit") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f Coin )) :*: ( S1 (' MetaSel (' Just "_poolDeposit") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f Coin )) :*: S1 (' MetaSel (' Just "_eMax") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f EpochNo )))) :*: ( S1 (' MetaSel (' Just "_nOpt") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f Natural )) :*: ( S1 (' MetaSel (' Just "_a0") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f NonNegativeInterval )) :*: S1 (' MetaSel (' Just "_rho") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f UnitInterval )))))) :*: ((( S1 (' MetaSel (' Just "_tau") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f UnitInterval )) :*: S1 (' MetaSel (' Just "_protocolVersion") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f ProtVer ))) :*: ( S1 (' MetaSel (' Just "_minPoolCost") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f Coin )) :*: ( S1 (' MetaSel (' Just "_coinsPerUTxOByte") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f Coin )) :*: S1 (' MetaSel (' Just "_costmdls") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f CostModels ))))) :*: (( S1 (' MetaSel (' Just "_prices") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f Prices )) :*: ( S1 (' MetaSel (' Just "_maxTxExUnits") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f ExUnits )) :*: S1 (' MetaSel (' Just "_maxBlockExUnits") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f ExUnits )))) :*: ( S1 (' MetaSel (' Just "_maxValSize") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f Natural )) :*: ( S1 (' MetaSel (' Just "_collateralPercentage") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f Natural )) :*: S1 (' MetaSel (' Just "_maxCollateralInputs") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f Natural ))))))))

emptyPParams :: PParams era Source #

Returns a basic "empty" PParams structure with all zero values.

updatePParams :: PParams era -> PParamsUpdate era -> PParams era Source #

Update operation for protocol parameters structure @PParams

data LangDepView Source #

Instances

Instances details
Eq LangDepView
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Ord LangDepView
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Show LangDepView
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Generic LangDepView
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

NoThunks LangDepView
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

type Rep LangDepView
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

retractPP :: HKD f Coin -> HKD f UnitInterval -> HKD f Nonce -> PParams' f era -> PParams' f era Source #

Turn an PParams' into a Shelley.Params'

extendPP :: PParams' f era1 -> HKD f Coin -> HKD f CostModels -> HKD f Prices -> HKD f ExUnits -> HKD f ExUnits -> HKD f Natural -> HKD f Natural -> HKD f Natural -> PParams' f era2 Source #

Given the missing pieces Turn a Shelley.PParams' into an Params'