mafoc-0.0.0.1
Safe HaskellSafe-Inferred
LanguageHaskell2010

Mafoc.LedgerState

Contents

Synopsis

Documentation

type ExtLedgerCfg_ = ExtLedgerCfg (HardForkBlock (CardanoEras StandardCrypto)) #

type ExtLedgerState_ = ExtLedgerState (HardForkBlock (CardanoEras StandardCrypto)) #

genesisExtLedgerCfg :: GenesisConfig -> ExtLedgerCfg_ #

loadExtLedgerState :: CodecConfig (CardanoBlock StandardCrypto) -> FilePath -> IO (Either DeserialiseFailure (ByteString, ExtLedgerState_)) #

writeExtLedgerState :: FilePath -> CodecConfig (CardanoBlock StandardCrypto) -> ExtLedgerState_ -> IO () #

applyBlock :: ExtLedgerCfg_ -> ExtLedgerState_ -> BlockInMode CardanoMode -> ExtLedgerState_ #

getGenesisConfig :: NodeConfig -> IO GenesisConfig #

Re-exports

getEpochNo :: ExtLedgerState_ -> Maybe EpochNo #

getEpochNonce :: ExtLedgerState_ -> Nonce #

getStakeMap :: ExtLedgerState_ -> Map PoolId Lovelace #