hs-tendermint-client-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

Network.Tendermint.Client.Internal.RPCClient

Synopsis

Documentation

data Request Source #

JSON-RPC request.

Constructors

Request 

Fields

Instances
ToJSON Request Source # 
Instance details

Defined in Network.Tendermint.Client.Internal.RPCClient

Methods

toJSON :: Request -> Value

toEncoding :: Request -> Encoding

toJSONList :: [Request] -> Value

toEncodingList :: [Request] -> Encoding

data Response Source #

JSON-RPC response.

Constructors

Response 

Fields

Instances
Eq Response Source # 
Instance details

Defined in Network.Tendermint.Client.Internal.RPCClient

Show Response Source # 
Instance details

Defined in Network.Tendermint.Client.Internal.RPCClient

FromJSON Response Source # 
Instance details

Defined in Network.Tendermint.Client.Internal.RPCClient

Methods

parseJSON :: Value -> Parser Response

parseJSONList :: Value -> Parser [Response]

ToJSON Response Source # 
Instance details

Defined in Network.Tendermint.Client.Internal.RPCClient

Methods

toJSON :: Response -> Value

toEncoding :: Response -> Encoding

toJSONList :: [Response] -> Value

toEncodingList :: [Response] -> Encoding

data RpcError Source #

JSON-RPC error message

Constructors

RpcError 

Fields

Instances
Eq RpcError Source # 
Instance details

Defined in Network.Tendermint.Client.Internal.RPCClient

Show RpcError Source # 
Instance details

Defined in Network.Tendermint.Client.Internal.RPCClient

FromJSON RpcError Source # 
Instance details

Defined in Network.Tendermint.Client.Internal.RPCClient

Methods

parseJSON :: Value -> Parser RpcError

parseJSONList :: Value -> Parser [RpcError]

ToJSON RpcError Source # 
Instance details

Defined in Network.Tendermint.Client.Internal.RPCClient

Methods

toJSON :: RpcError -> Value

toEncoding :: RpcError -> Encoding

toJSONList :: [RpcError] -> Value

toEncodingList :: [RpcError] -> Encoding

newtype MethodName Source #

Name of called method.

Constructors

MethodName Text 

data Config Source #

JSON-RPC client config

Constructors

Config 

Fields

remoteWS :: (FromJSON output, ToJSON input) => Config -> MethodName -> input -> (output -> IO ()) -> IO () Source #

remote :: (MonadIO m, MonadReader Config m, FromJSON output, ToJSON input) => MethodName -> input -> m output Source #