Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Hydra.Ledger.Cardano.Configuration
Synopsis
- newtype ProtocolParametersConversionException = ProtocolParametersConversionException ProtocolParametersConversionError
- data GlobalsTranslationException = GlobalsTranslationException
- readJsonFileThrow :: (Value -> Parser a) -> FilePath -> IO a
- newGlobals :: MonadThrow m => GenesisParameters -> m Globals
- protocolParametersFromJson :: Value -> Parser ProtocolParameters
- newLedgerEnv :: MonadThrow m => ProtocolParameters -> m (LedgerEnv LedgerEra)
- data Globals
- data LedgerEnv era
Documentation
newtype ProtocolParametersConversionException Source #
Constructors
ProtocolParametersConversionException ProtocolParametersConversionError |
data GlobalsTranslationException Source #
Constructors
GlobalsTranslationException |
Instances
readJsonFileThrow :: (Value -> Parser a) -> FilePath -> IO a Source #
newGlobals :: MonadThrow m => GenesisParameters -> m Globals Source #
Create new L2 ledger Globals
from GenesisParameters
.
Throws at least GlobalsTranslationException
protocolParametersFromJson :: Value -> Parser ProtocolParameters Source #
newLedgerEnv :: MonadThrow m => ProtocolParameters -> m (LedgerEnv LedgerEra) Source #
Create a new ledger env from given protocol parameters.
Throws at least ProtocolParametersConversionException