Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- decodeShelleyGenesisFile :: forall t (m :: Type -> Type). MonadIOTransError GenesisCmdError t m => FilePath -> t m (ShelleyGenesis StandardCrypto)
- decodeAlonzoGenesisFile :: forall t (m :: Type -> Type) era. MonadIOTransError GenesisCmdError t m => Maybe (CardanoEra era) -> FilePath -> t m AlonzoGenesis
- decodeConwayGenesisFile :: forall t (m :: Type -> Type). MonadIOTransError GenesisCmdError t m => FilePath -> t m (ConwayGenesis StandardCrypto)
- genStuffedAddress :: Network -> IO (AddressInEra ShelleyEra)
- getCurrentTimePlus30 :: MonadIO m => m UTCTime
- readRelays :: forall (m :: Type -> Type). MonadIO m => FilePath -> ExceptT GenesisCmdError m (Map Word [StakePoolRelay])
- readProtocolParameters :: ShelleyBasedEra era -> ProtocolParamsFile -> ExceptT ProtocolParamsError IO (PParams (ShelleyLedgerEra era))
Documentation
decodeShelleyGenesisFile :: forall t (m :: Type -> Type). MonadIOTransError GenesisCmdError t m => FilePath -> t m (ShelleyGenesis StandardCrypto) Source #
decodeAlonzoGenesisFile Source #
:: forall t (m :: Type -> Type) era. MonadIOTransError GenesisCmdError t m | |
=> Maybe (CardanoEra era) | Optional era in which we're decoding alonzo genesis. |
-> FilePath | |
-> t m AlonzoGenesis |
Decode Alonzo Genesis file. See decodeAlonzoGenesis
haddocks for details.
decodeConwayGenesisFile :: forall t (m :: Type -> Type). MonadIOTransError GenesisCmdError t m => FilePath -> t m (ConwayGenesis StandardCrypto) Source #
genStuffedAddress :: Network -> IO (AddressInEra ShelleyEra) Source #
getCurrentTimePlus30 :: MonadIO m => m UTCTime Source #
Current UTCTime plus 30 seconds
:: forall (m :: Type -> Type). MonadIO m | |
=> FilePath | The file to read from |
-> ExceptT GenesisCmdError m (Map Word [StakePoolRelay]) |
Protocol Parameters
readProtocolParameters :: ShelleyBasedEra era -> ProtocolParamsFile -> ExceptT ProtocolParamsError IO (PParams (ShelleyLedgerEra era)) Source #