Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
.
MorleyOnlyRpcEnv | |
|
Instances
mkMorleyOnlyRpcEnv :: [SecretKey] -> BaseUrl -> Word -> IO MorleyOnlyRpcEnv Source #
Construct MorleyOnlyRpcEnv
.
- Full
MorleyClientConfig
is 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
.
Instances
runMorleyOnlyRpcM :: MorleyOnlyRpcEnv -> MorleyOnlyRpcM a -> IO a Source #
Run MorleyOnlyRpcM
action within given MorleyOnlyRpcEnv
. Retry action
in case of invalid counter error.