Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Nagel <[email protected]>
  • Loading branch information
abailly-iohk and ch1bo committed Sep 2, 2021
1 parent e302ab9 commit 46955c5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ idea to do the following:
Documentation is published online at https://input-output-hk.github.io/hydra-poc from the [docs](docs/README.md) directory.

API Documentations are available for:
* The [API WebSocket API](https://input-output-hk.github.io/json-schema-viewer/#/?url=https://raw.githubusercontent.com/input-output-hk/hydra-poc/master/hydra-node/api.yaml)
* The [WebSocket API](https://input-output-hk.github.io/json-schema-viewer/#/?url=https://raw.githubusercontent.com/input-output-hk/hydra-poc/master/hydra-node/api.yaml)
* The [Log API](https://input-output-hk.github.io/json-schema-viewer/#/?url=https://raw.githubusercontent.com/input-output-hk/hydra-poc/master/hydra-node/api-log.yaml)

[Haddock](https://www.haskell.org/haddock/) documentation is also published for each package:
Expand Down
12 changes: 6 additions & 6 deletions hydra-node/api-log.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"$comment": A description of the log items produced by a Hydra node
title: Hydra Logs API
description: >
This schema documents the structure of the Log items produced by a running Hydra node
and output to its standard output stream. Items are output as JSON data, separated by
This schema documents the structure of the Log items produced by a Hydra node
via its standard output stream. Items are emitted as individual JSON objects, separated by
a newline which makes it easy to ingest by thirdparty tools and services.
required:
Expand All @@ -24,7 +24,7 @@ properties:
type: string
format: "date-time"
description: >-
Timestamp denoting the wall-clock time at which this log entry was recoded
Timestamp denoting the wall-clock time at which this log entry was recorded.
thread:
type: integer
Expand All @@ -39,7 +39,7 @@ properties:
- tag
- api
description: >-
A log entry produced by the API server
A log entry produced by the API server.
properties:
tag:
type: string
Expand Down Expand Up @@ -279,7 +279,7 @@ definitions:
- tag
description: >-
An internal event dependent on the snapshot strategy of the node, requesting some snapshot
to be emitted.
to be performed.
properties:
tag:
type: string
Expand Down Expand Up @@ -389,7 +389,7 @@ definitions:
- contestationPeriod
- parties
description: >-
The initial transaction of the Head announcing various parameters and the parties has been
The initial transaction of the Head, announcing various parameters and the parties, has been
posted on-chain.
properties:
tag:
Expand Down
6 changes: 3 additions & 3 deletions hydra-node/src/Hydra/Chain.hs
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ type ContestationPeriod = DiffTime
data PostChainTx tx
= InitTx {headParameters :: HeadParameters}
| CommitTx {party :: Party, committed :: Utxo tx}
| AbortTx {utxos :: Utxo tx}
| CollectComTx {utxos :: Utxo tx}
| AbortTx {utxo :: Utxo tx}
| CollectComTx {utxo :: Utxo tx}
| CloseTx {snapshot :: Snapshot tx}
| ContestTx {snapshot :: Snapshot tx}
| FanoutTx {utxos :: Utxo tx}
| FanoutTx {utxo :: Utxo tx}
deriving stock (Generic)

deriving instance Tx tx => Eq (PostChainTx tx)
Expand Down

0 comments on commit 46955c5

Please sign in to comment.