Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
MorleyClientConfig | |
|
Instances
Show MorleyClientConfig Source # | |
Defined in Morley.Client.Init showsPrec :: Int -> MorleyClientConfig -> ShowS # show :: MorleyClientConfig -> String # showList :: [MorleyClientConfig] -> ShowS # |
mkMorleyClientEnv :: MonadIO m => MorleyClientConfig -> IO (MorleyClientEnv' m) Source #
Construct MorleyClientEnv
.
tezos-client
path is taken fromMorleyClientConfig
, but can be overridden usingMORLEY_TEZOS_CLIENT
environment variable.- Node data is taken from
tezos-client
config and can be overridden byMorleyClientConfig
. - The rest is taken from
MorleyClientConfig
as 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 #