utxorpc-client-0.0.1.0: An SDK for clients of the UTxO RPC specification.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Utxorpc.Types

Description

The types in this module are required to call methods of a UtxorpcClient.

Synopsis

Documentation

data UtxorpcClient Source #

Methods for each module in UTxO RPC. >>> fetchBlock (buildClient client) defMessage

Constructors

UtxorpcClient 

Fields

newtype WatchClientImpl Source #

Methods of the watch module

type ServerStreamCall i o Source #

Arguments

 = forall a. a

The initial state for the stream processing function.

-> i

The request message to send to the service.

-> (a -> HeaderList -> o -> IO a)

The stream processing function. It is a fold over some state a with stream messages o.

-> ServerStreamReply a

The final state of the stream processing function, or an error.

Type definition for functions that make calls to server stream methods. Note that the stream state, a, can be different for each call.

type ServerStreamReply a = IO (Either ClientError (Either TooMuchConcurrency (a, HeaderList, HeaderList))) Source #

The type returned by calls to server stream methods. a is the final state of the stream processing function.

type UnaryReply o = IO (Either ClientError (Either TooMuchConcurrency (RawReply o))) Source #

The type returned by calls to unary service methods.