ouroboros-consensus-cardano-0.12.1.0: The instantation of the Ouroboros consensus layer used by Cardano
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.ByronSpec.Ledger.Genesis

Contents

Description

Genesis config for the spec

Intended for qualified import

import           Ouroboros.Consensus.ByronSpec.Ledger.Genesis (ByronSpecGenesis)
import qualified Ouroboros.Consensus.ByronSpec.Ledger.Genesis as Genesis
Synopsis

Documentation

data ByronSpecGenesis Source #

The equivalent of the genesis config for the abstract ledger

Constructors

ByronSpecGenesis 

Fields

modFeeParams :: ((Int, Int) -> (Int, Int)) -> ByronSpecGenesis -> ByronSpecGenesis Source #

Modify the a and b fee parameters

modPParams :: (PParams -> PParams) -> ByronSpecGenesis -> ByronSpecGenesis Source #

modUtxoValues :: (Integer -> Integer) -> ByronSpecGenesis -> ByronSpecGenesis Source #

Adjust all values in the initial UTxO equally

Conversions

fromChainEnv :: Natural -> Environment CHAIN -> ByronSpecGenesis Source #

Construct genesis config from CHAIN environment

This doesn't make an awful lot of sense, but the abstract spec doesn't have a concept of a genesis config, and instead the CHAIN environment fulfills that role. In order to be able to reuse the test generators, we therefore also define a translation in the opposite direction.

toChainEnv :: ByronSpecGenesis -> Environment CHAIN Source #

Derive CHAIN rule environment