Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- type TTL = Natural
- data Input tx
- = ClientInput {
- clientInput :: ClientInput tx
- | NetworkInput {
- ttl :: TTL
- networkEvent :: NetworkEvent (Message tx)
- | ChainInput {
- chainEvent :: ChainEvent tx
- = ClientInput {
Documentation
Inputs that are processed by the head logic (the "core"). Corresponding to each of the "shell" layers, we distinguish between inputs from the client, the network and the chain.
ClientInput | Input received from clients via the Hydra.API. |
| |
NetworkInput | Input received from peers via a Hydra.Network.
|
| |
ChainInput | Input received from the chain via a Hydra.Chain. |
|
Instances
(ArbitraryIsTx tx, IsChainState tx) => Arbitrary (Input tx) Source # | |
IsChainState tx => FromJSON (Input tx) Source # | |
Defined in Hydra.HeadLogic.Input parseJSON :: Value -> Parser (Input tx) parseJSONList :: Value -> Parser [Input tx] omittedField :: Maybe (Input tx) | |
IsChainState tx => ToJSON (Input tx) Source # | |
Defined in Hydra.HeadLogic.Input toEncoding :: Input tx -> Encoding toJSONList :: [Input tx] -> Value toEncodingList :: [Input tx] -> Encoding | |
Generic (Input tx) Source # | |
IsChainState tx => Show (Input tx) Source # | |
IsChainState tx => Eq (Input tx) Source # | |
type Rep (Input tx) Source # | |
Defined in Hydra.HeadLogic.Input type Rep (Input tx) = D1 ('MetaData "Input" "Hydra.HeadLogic.Input" "hydra-node-0.20.0-GJlHI5giGamBfggh7PdYBV" 'False) (C1 ('MetaCons "ClientInput" 'PrefixI 'True) (S1 ('MetaSel ('Just "clientInput") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ClientInput tx))) :+: (C1 ('MetaCons "NetworkInput" 'PrefixI 'True) (S1 ('MetaSel ('Just "ttl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TTL) :*: S1 ('MetaSel ('Just "networkEvent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NetworkEvent (Message tx)))) :+: C1 ('MetaCons "ChainInput" 'PrefixI 'True) (S1 ('MetaSel ('Just "chainEvent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ChainEvent tx))))) |