cardano-ledger-alonzo-0.1.0.0: Cardano ledger introducing Plutus Core
Safe Haskell None
Language Haskell2010

Cardano.Ledger.Alonzo.PParams

Description

This module contains just the type of protocol parameters.

Synopsis

Documentation

data PParams' f era Source #

Protocol parameters. Shelley parameters + additional ones

Constructors

PParams

Fields

Instances

Instances details
ToJSON ( PParams era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Genesis

ToJSON ( PParamsUpdate era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Genesis

FromJSON ( PParams era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Genesis

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

Defined in Cardano.Ledger.Alonzo.PParams

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

Defined in Cardano.Ledger.Alonzo.PParams

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

Defined in Cardano.Ledger.Alonzo.PParams

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

Defined in Cardano.Ledger.Alonzo.PParams

Default ( PParams era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

NoThunks ( PParams era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

NoThunks ( PParamsUpdate era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Eq ( PParams' Identity era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Eq ( PParams' StrictMaybe era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.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.Alonzo.PParams

Show ( PParams' Identity era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Show ( PParams' StrictMaybe era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Generic ( PParams' f era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Associated Types

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

NFData ( PParams' Identity era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

NFData ( PParams' StrictMaybe era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

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

Defined in Cardano.Ledger.Alonzo.PParams

type Rep ( PParams' f era) = D1 (' MetaData "PParams'" "Cardano.Ledger.Alonzo.PParams" "cardano-ledger-alonzo-0.1.0.0-xW3meaGVQP43dxJ76zbGD" ' 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 "_d") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f UnitInterval )) :*: ( S1 (' MetaSel (' Just "_extraEntropy") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f Nonce )) :*: 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 "_coinsPerUTxOWord") ' 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 Source #
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Ord LangDepView Source #
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Show LangDepView Source #
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Generic LangDepView Source #
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

NoThunks LangDepView Source #
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

type Rep LangDepView Source #
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

retractPP :: HKD f Coin -> PParams' f era2 -> PParams' f era1 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'