cardano-ledger-shelley-0.1.0.0
Safe Haskell None
Language Haskell2010

Cardano.Ledger.Shelley.PParams

Description

This module contains just the type of protocol parameters.

Synopsis

Documentation

data PParams' f era Source #

Protocol parameters.

We use the HKD type family so that the protocol parameters type and the type for the updates to the protocol parameters can share records fields. The protocol parameters will have type PParams' Identity , and the updates will have type PParams' StrictMaybe , though Identity will be hidden from use.

For example:

  myParameters =
    PParams
      { _minfeeA = 0,
        _minfeeB = 0,
        ...
      }

  myUpdate =
    PParamsUpdate
      { _minfeeA = SNothing,
        _minfeeB = SJust 42,
        ...
      }

Constructors

PParams

Fields

Instances

Instances details
ToJSON ( PParams era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

FromJSON ( PParams era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

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

Defined in Cardano.Ledger.Shelley.PParams

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

Defined in Cardano.Ledger.Shelley.PParams

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

Defined in Cardano.Ledger.Shelley.PParams

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

Defined in Cardano.Ledger.Shelley.PParams

Default ( PParams era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

NoThunks ( PParamsUpdate era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

NoThunks ( PParams era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Eq ( PParams' Identity era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Eq ( PParams' StrictMaybe era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Ord ( PParams' StrictMaybe era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Show ( PParams' Identity era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Show ( PParams' StrictMaybe era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Generic ( PParams' f era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Associated Types

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

NFData ( PParams' Identity era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

NFData ( PParams' StrictMaybe era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

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

Defined in Cardano.Ledger.Shelley.PParams

type Rep ( PParams' f era) = D1 (' MetaData "PParams'" "Cardano.Ledger.Shelley.PParams" "cardano-ledger-shelley-0.1.0.0-4LNBTpyKcsy6EW18a3tTt2" ' 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 "_minUTxOValue") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f Coin )) :*: S1 (' MetaSel (' Just "_minPoolCost") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HKD f Coin ))))))))

emptyPParams :: PParams era Source #

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

type family HKD f a where ... Source #

Higher Kinded Data

Equations

HKD Identity a = a
HKD f a = f a

data PPUpdateEnv era Source #

Instances

Instances details
Eq ( PPUpdateEnv era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Show ( PPUpdateEnv era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Generic ( PPUpdateEnv era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Associated Types

type Rep ( PPUpdateEnv era) :: Type -> Type Source #

NoThunks ( PPUpdateEnv era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

type Rep ( PPUpdateEnv era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

newtype ProposedPPUpdates era Source #

Update operation for protocol parameters structure @PParams

Instances

Instances details
Eq ( PParamsDelta era) => Eq ( ProposedPPUpdates era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Show ( PParamsDelta era) => Show ( ProposedPPUpdates era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Generic ( ProposedPPUpdates era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

NFData ( PParamsDelta era) => NFData ( ProposedPPUpdates era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

( Era era, ToCBOR ( PParamsDelta era)) => ToCBOR ( ProposedPPUpdates era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

( Era era, FromCBOR ( PParamsDelta era)) => FromCBOR ( ProposedPPUpdates era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

NoThunks ( PParamsDelta era) => NoThunks ( ProposedPPUpdates era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

type Rep ( ProposedPPUpdates era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

type Rep ( ProposedPPUpdates era) = D1 (' MetaData "ProposedPPUpdates" "Cardano.Ledger.Shelley.PParams" "cardano-ledger-shelley-0.1.0.0-4LNBTpyKcsy6EW18a3tTt2" ' True ) ( C1 (' MetaCons "ProposedPPUpdates" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Map ( KeyHash ' Genesis ( Crypto era)) ( PParamsDelta era)))))

data Update era Source #

Update Proposal

Instances

Instances details
HasField "update" ( TxBody era) ( StrictMaybe ( Update era)) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Eq ( PParamsDelta era) => Eq ( Update era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Show ( PParamsDelta era) => Show ( Update era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Generic ( Update era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Associated Types

type Rep ( Update era) :: Type -> Type Source #

NFData ( PParamsDelta era) => NFData ( Update era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Methods

rnf :: Update era -> () Source #

( Era era, ToCBOR ( PParamsDelta era)) => ToCBOR ( Update era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

( Era era, FromCBOR ( PParamsDelta era)) => FromCBOR ( Update era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

NoThunks ( PParamsDelta era) => NoThunks ( Update era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

type Rep ( Update era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams