Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains just the type of protocol parameters.
Synopsis
-
data
PParams'
f era =
PParams
{
- _minfeeA :: !( HKD f Natural )
- _minfeeB :: !( HKD f Natural )
- _maxBBSize :: !( HKD f Natural )
- _maxTxSize :: !( HKD f Natural )
- _maxBHSize :: !( HKD f Natural )
- _keyDeposit :: !( HKD f Coin )
- _poolDeposit :: !( HKD f Coin )
- _eMax :: !( HKD f EpochNo )
- _nOpt :: !( HKD f Natural )
- _a0 :: !( HKD f NonNegativeInterval )
- _rho :: !( HKD f UnitInterval )
- _tau :: !( HKD f UnitInterval )
- _d :: !( HKD f UnitInterval )
- _extraEntropy :: !( HKD f Nonce )
- _protocolVersion :: !( HKD f ProtVer )
- _minPoolCost :: !( HKD f Coin )
- _coinsPerUTxOWord :: !( HKD f Coin )
- _costmdls :: !( HKD f CostModels )
- _prices :: !( HKD f Prices )
- _maxTxExUnits :: !( HKD f ExUnits )
- _maxBlockExUnits :: !( HKD f ExUnits )
- _maxValSize :: !( HKD f Natural )
- _collateralPercentage :: !( HKD f Natural )
- _maxCollateralInputs :: !( HKD f Natural )
- type PParams era = PParams' Identity era
- emptyPParams :: PParams era
- type PParamsUpdate era = PParams' StrictMaybe era
- emptyPParamsUpdate :: PParamsUpdate era
- updatePParams :: PParams era -> PParamsUpdate era -> PParams era
- getLanguageView :: forall era. HasField "_costmdls" ( PParams era) CostModels => PParams era -> Language -> LangDepView
-
data
LangDepView
=
LangDepView
{
- tag :: ByteString
- params :: ByteString
- encodeLangViews :: Set LangDepView -> Encoding
- retractPP :: HKD f Coin -> PParams' f era2 -> PParams' f era1
- 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
Documentation
Protocol parameters. Shelley parameters + additional ones
PParams | |
|
Instances
emptyPParams :: PParams era Source #
Returns a basic "empty"
PParams
structure with all zero values.
type PParamsUpdate era = PParams' StrictMaybe era Source #
emptyPParamsUpdate :: PParamsUpdate era Source #
updatePParams :: PParams era -> PParamsUpdate era -> PParams era Source #
Update operation for protocol parameters structure @PParams
getLanguageView :: forall era. HasField "_costmdls" ( PParams era) CostModels => PParams era -> Language -> LangDepView Source #
data LangDepView Source #
LangDepView | |
|
Instances
encodeLangViews :: Set LangDepView -> Encoding Source #