New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cardano-client package #2109
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @MarcFontaine, I left some comments.
{-# LANGUAGE ScopedTypeVariables #-} | ||
{-# LANGUAGE TypeFamilies #-} | ||
|
||
module Cardano.Client.API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's worth to control what we export from this module. Otherwise it will be too easy to make changes to this module and not realize that they need to be propagated.
Then make sure that this module exports everything that the functions exported here needs..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also a better name for this module would be Cardano.Client.Subscription
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now I only export the subscribe
function
I want to figure out the exact exports later after this is tested in the applications.
This is just the first iteration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you'd use cardano-haskell
you could play with other repos before merging it.
-- import Ouroboros.Network.NodeToClient | ||
, ConnectionId (..) | ||
, NetworkConnectTracers (..) | ||
, NodeToClientVersion (..) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to think how to export it. It will clash with NodeToClientVersion
in ouroboros-consensus
which I think is more useful (but it would be good to check in various clients).
Maybe it would be useful to show how the new API improves the (lack of an) existing one? For example, show a small piece of code using it. Even better, translate one of the existing clients in |
This has been done two weeks ago for |
@@ -0,0 +1,177 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also need to copy the NOTICE
file (ouroboros-network/NOTICE
).
cardano-client/cardano-client.cabal
Outdated
synopsis: An API for ouroboros-network | ||
-- description: | ||
license: Apache-2.0 | ||
license-files: LICENSE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also add NOTICE
here.
cardano-client/cardano-client.cabal
Outdated
license: Apache-2.0 | ||
license-files: LICENSE | ||
copyright: 2019 Input Output (Hong Kong) Ltd. | ||
maintainer: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's good to put:
maintainer: operations@iohk.io
For authors it might be good to put IOHK Engineering Team
.
237084b
to
37699ad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Please also open a PR which updates cardano-haskell
's cabal.project
file.
bors r+ |
Related to #1013 |
At the moment this only consists of the
subscribe
function.