| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Morley.Client.Init
Contents
Description
Morley client initialization.
Synopsis
- data MorleyClientConfig = MorleyClientConfig {
- mccAliasPrefix :: Maybe Text
 - mccEndpointUrl :: Maybe BaseUrl
 - mccTezosClientPath :: FilePath
 - mccMbTezosClientDataDir :: Maybe FilePath
 - mccVerbosity :: Word
 - mccSecretKey :: Maybe SecretKey
 
 - mkMorleyClientEnv :: MonadIO m => MorleyClientConfig -> IO (MorleyClientEnv' m)
 - mkLogAction :: MonadIO m => Word -> ClientLogAction m
 - mccAliasPrefixL :: Lens' MorleyClientConfig (Maybe Text)
 - mccEndpointUrlL :: Lens' MorleyClientConfig (Maybe BaseUrl)
 - mccTezosClientPathL :: Lens' MorleyClientConfig FilePath
 - mccMbTezosClientDataDirL :: Lens' MorleyClientConfig (Maybe FilePath)
 - mccVerbosityL :: Lens' MorleyClientConfig Word
 - mccSecretKeyL :: Lens' MorleyClientConfig (Maybe SecretKey)
 
Documentation
data MorleyClientConfig Source #
Data necessary for morley client initialization.
Constructors
| MorleyClientConfig | |
Fields 
  | |
Instances
| Show MorleyClientConfig Source # | |
Defined in Morley.Client.Init Methods showsPrec :: Int -> MorleyClientConfig -> ShowS # show :: MorleyClientConfig -> String # showList :: [MorleyClientConfig] -> ShowS #  | |
mkMorleyClientEnv :: MonadIO m => MorleyClientConfig -> IO (MorleyClientEnv' m) Source #
Construct MorleyClientEnv.
tezos-clientpath is taken fromMorleyClientConfig, but can be overridden usingMORLEY_TEZOS_CLIENTenvironment variable.- Node data is taken from 
tezos-clientconfig and can be overridden byMorleyClientConfig. - The rest is taken from 
MorleyClientConfigas is. 
mkLogAction :: MonadIO m => Word -> ClientLogAction m Source #
Make appropriate ClientLogAction based on verbosity specified by the user.
Lens
mccSecretKeyL :: Lens' MorleyClientConfig (Maybe SecretKey) Source #