Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
The types in this module are required to call methods of a UtxorpcClient
.
Synopsis
- data UtxorpcClient = UtxorpcClient {}
- data BuildClientImpl = BuildClientImpl {
- getChainTip :: GetChainTipRequest -> UnaryReply GetChainTipResponse
- getChainParam :: GetChainParamRequest -> UnaryReply GetChainParamResponse
- getUtxoByAddress :: GetUtxoByAddressRequest -> UnaryReply GetUtxoByAddressResponse
- getUtxoByRef :: GetUtxoByRefRequest -> UnaryReply GetUtxoByRefResponse
- holdUtxo :: ServerStreamCall HoldUtxoRequest HoldUtxoResponse
- data SubmitClientImpl = SubmitClientImpl {}
- data SyncClientImpl = SyncClientImpl {}
- newtype WatchClientImpl = WatchClientImpl {}
- type ServerStreamCall i o = forall a. a -> i -> (a -> HeaderList -> o -> IO a) -> ServerStreamReply a
- type ServerStreamReply a = IO (Either ClientError (Either TooMuchConcurrency (a, HeaderList, HeaderList)))
- type UnaryReply o = IO (Either ClientError (Either TooMuchConcurrency (RawReply o)))
Documentation
data UtxorpcClient Source #
Methods for each module in UTxO RPC. >>> fetchBlock (buildClient client) defMessage
UtxorpcClient | |
|
data BuildClientImpl Source #
Methods of the Build module
data SubmitClientImpl Source #
Methods of the Submit module
data SyncClientImpl Source #
Methods of the Sync module
newtype WatchClientImpl Source #
Methods of the watch module
type ServerStreamCall i o Source #
= 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.