Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data HydraEvent tx
- = ClientConnected
- | ClientDisconnected
- | Update (TimedServerOutput tx)
- | Tick UTCTime
- data Client tx m = Client {
- sendInput :: ClientInput tx -> m ()
- sk :: SigningKey PaymentKey
- externalCommit :: UTxO -> m ()
- type ClientCallback tx m = HydraEvent tx -> m ()
- type ClientComponent tx m a = ClientCallback tx m -> (Client tx m -> m a) -> m a
- withClient :: (ToJSON (ClientInput tx), FromJSON (TimedServerOutput tx)) => Options -> ClientComponent tx IO a
- data ClientError = ClientJSONDecodeError String ByteString
Documentation
data HydraEvent tx Source #
ClientConnected | |
ClientDisconnected | |
Update (TimedServerOutput tx) | |
Tick UTCTime |
Instances
Handle to interact with Hydra node
Client | |
|
type ClientCallback tx m = HydraEvent tx -> m () Source #
Callback for receiving server outputs.
type ClientComponent tx m a = ClientCallback tx m -> (Client tx m -> m a) -> m a Source #
A type tying both receiving output and sending input into a Component.
withClient :: (ToJSON (ClientInput tx), FromJSON (TimedServerOutput tx)) => Options -> ClientComponent tx IO a Source #
Provide a component to interact with Hydra node.
data ClientError Source #
Instances
Exception ClientError Source # | |
Defined in Hydra.Client | |
Generic ClientError Source # | |
Defined in Hydra.Client from :: ClientError -> Rep ClientError x Source # to :: Rep ClientError x -> ClientError Source # | |
Show ClientError Source # | |
Defined in Hydra.Client | |
Eq ClientError Source # | |
Defined in Hydra.Client (==) :: ClientError -> ClientError -> Bool Source # (/=) :: ClientError -> ClientError -> Bool Source # | |
type Rep ClientError Source # | |
Defined in Hydra.Client type Rep ClientError = D1 ('MetaData "ClientError" "Hydra.Client" "hydra-tui-0.19.0-AVnb3mvDVVRIVx4surImr" 'False) (C1 ('MetaCons "ClientJSONDecodeError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))) |