| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Morley.Client.OnlyRPC
Description
An alternative implementation of morley-client that does not require
octez-client and has some limitations because of that (not all methods
are implemented).
Synopsis
- data MorleyOnlyRpcEnv = MorleyOnlyRpcEnv {
- moreLogAction :: ClientLogAction MorleyOnlyRpcM
- moreClientEnv :: ClientEnv
- moreSecretKeys :: Map ImplicitAddress SecretKey
- mkMorleyOnlyRpcEnv :: [SecretKey] -> BaseUrl -> Word -> IO MorleyOnlyRpcEnv
- newtype MorleyOnlyRpcM a = MorleyOnlyRpcM {}
- runMorleyOnlyRpcM :: MorleyOnlyRpcEnv -> MorleyOnlyRpcM a -> IO a
Documentation
data MorleyOnlyRpcEnv Source #
Environment used by MorleyOnlyRpcM.
Constructors
| MorleyOnlyRpcEnv | |
Fields
| |
Instances
| MonadReader MorleyOnlyRpcEnv MorleyOnlyRpcM Source # | |
Defined in Morley.Client.OnlyRPC Methods ask :: MorleyOnlyRpcM MorleyOnlyRpcEnv # local :: (MorleyOnlyRpcEnv -> MorleyOnlyRpcEnv) -> MorleyOnlyRpcM a -> MorleyOnlyRpcM a # reader :: (MorleyOnlyRpcEnv -> a) -> MorleyOnlyRpcM a # | |
| HasLog MorleyOnlyRpcEnv Message MorleyOnlyRpcM Source # | |
Defined in Morley.Client.OnlyRPC Methods getLogAction :: MorleyOnlyRpcEnv -> LogAction MorleyOnlyRpcM Message # setLogAction :: LogAction MorleyOnlyRpcM Message -> MorleyOnlyRpcEnv -> MorleyOnlyRpcEnv # overLogAction :: (LogAction MorleyOnlyRpcM Message -> LogAction MorleyOnlyRpcM Message) -> MorleyOnlyRpcEnv -> MorleyOnlyRpcEnv # logActionL :: Lens' MorleyOnlyRpcEnv (LogAction MorleyOnlyRpcM Message) # | |
mkMorleyOnlyRpcEnv :: [SecretKey] -> BaseUrl -> Word -> IO MorleyOnlyRpcEnv Source #
Construct MorleyOnlyRpcEnv.
- Full
MorleyClientConfigis not passed because we need just 2 things from it. - Log action is built the same way as for
MorleyClientEnv. - All secret keys are passed as an argument.
newtype MorleyOnlyRpcM a Source #
Monad that implements HasTezosClient and HasTezosRpc classes and
can be used for high-level actions as an alternative to MorleyClientM.
Constructors
| MorleyOnlyRpcM | |
Fields | |
Instances
runMorleyOnlyRpcM :: MorleyOnlyRpcEnv -> MorleyOnlyRpcM a -> IO a Source #
Run MorleyOnlyRpcM action within given MorleyOnlyRpcEnv. Retry action
in case of invalid counter error.