cardano-cli
Safe HaskellNone
LanguageHaskell2010

Cardano.CLI.EraBased.Genesis.Internal.Common

Synopsis

Documentation

type GenesisStakePoolParams = StakePoolParams ShelleyEra Source #

Stake pool parameters for the Shelley genesis file.

Pinned to ShelleyEra because the ledger's ShelleyGenesisStaking field sgsPools requires StakePoolParams ShelleyEra. The era index on StakePoolParams is phantom (cardano-ledger-core 1.22) and is dropped by mkStakePoolState when the initial pool state is built, so this holds for whichever era the chain starts in.

decodeAlonzoGenesisFile :: forall t (m :: Type -> Type). MonadIOTransError GenesisCmdError t m => FilePath -> t m AlonzoGenesis Source #

Decode Alonzo Genesis file. See decodeAlonzoGenesis haddocks for details.

getCurrentTimePlus30 :: MonadIO m => m UTCTime Source #

Current UTCTime plus 30 seconds

readRelays Source #

Arguments

:: forall (m :: Type -> Type). MonadIO m 
=> FilePath

The file to read from

-> ExceptT GenesisCmdError m (Map Word [StakePoolRelay]) 

Protocol Parameters