Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data GlobalsTranslationException = GlobalsTranslationException
- newLedgerEnv :: PParams LedgerEra -> LedgerEnv LedgerEra
- readJsonFileThrow :: (Value -> Parser a) -> FilePath -> IO a
- newGlobals :: MonadThrow m => GenesisParameters ShelleyEra -> m Globals
- pparamsFromJson :: Value -> Parser (PParams LedgerEra)
- data Globals
- data LedgerEnv era
Documentation
newLedgerEnv :: PParams LedgerEra -> LedgerEnv LedgerEra Source #
Create a new ledger env from given protocol parameters.
readJsonFileThrow :: (Value -> Parser a) -> FilePath -> IO a Source #
newGlobals :: MonadThrow m => GenesisParameters ShelleyEra -> m Globals Source #
Create new L2 ledger Globals
from GenesisParameters
.
Throws at least GlobalsTranslationException
pparamsFromJson :: Value -> Parser (PParams LedgerEra) Source #
Decode protocol parameters using the ProtocolParameters
instance as this
is used by cardano-cli and matches the schema. TODO: define the schema