-
Notifications
You must be signed in to change notification settings - Fork 720
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
Export cardano-testnet API from Cardano.Testnet #4636
Conversation
b412d13
to
ff2f3c4
Compare
ff2f3c4
to
f853558
Compare
015f509
to
2f0f333
Compare
Util.Assert | ||
Util.Base | ||
Util.Ignore | ||
Util.Process | ||
Util.Runtime | ||
Parsers |
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 don't think Parsers
needs to be exposed
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.
Turned out it was needed for cabal build cardano-testnet:exe:cardano-testnet
.
In any case, I renamed Parsers
to Testnet.Parsers
and kept it in the exported API.
Parsers.Shelley | ||
Parsers.Version | ||
exposed-modules: Cardano.Testnet | ||
Testnet.Byron | ||
Util.Assert |
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.
Let's change Util.x
to Testnet.Util.x
. We will need to rename Testnet.Util
to something else or put the functions/types in a suitable Testnet.Util.x
module
2f0f333
to
431d283
Compare
431d283
to
8a77b11
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! Just squash the commits
8a77b11
to
e702883
Compare
bors r+ |
4636: Export cardano-testnet API from Cardano.Testnet r=MarcFontaine a=MarcFontaine Co-authored-by: MarcFontaine <[email protected]>
bors r- |
Canceled. |
e702883
to
bfcee66
Compare
bors r+ |
4636: Export cardano-testnet API from Cardano.Testnet r=MarcFontaine a=MarcFontaine Co-authored-by: MarcFontaine <[email protected]>
Timed out. |
bors r+ |
4636: Export cardano-testnet API from Cardano.Testnet r=MarcFontaine a=MarcFontaine Co-authored-by: MarcFontaine <[email protected]>
Timed out. |
bfcee66
to
fdb754d
Compare
bors r+ |
4636: Export cardano-testnet API from Cardano.Testnet r=MarcFontaine a=MarcFontaine Co-authored-by: MarcFontaine <[email protected]>
Timed out. |
fdb754d
to
74f1f08
Compare
bors r+ |
4636: Export cardano-testnet API from Cardano.Testnet r=MarcFontaine a=MarcFontaine Co-authored-by: MarcFontaine <[email protected]>
Build failed: |
module Parsers where | ||
module Testnet.Parsers | ||
( | ||
commands |
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.
This does not follow the typical module export style. Please fix.
74f1f08
to
15d1a4d
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.
Good work 👍
15d1a4d
to
624c116
Compare
bors r+ |
4636: Export cardano-testnet API from Cardano.Testnet r=MarcFontaine a=MarcFontaine Co-authored-by: MarcFontaine <[email protected]>
Build failed: |
@@ -1,4 +1,6 @@ | |||
module Parsers where | |||
module Testnet.Parsers |
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.
👍
[ "stake-address", "build" | ||
, "--stake-verification-key-file", poolownerstakekey | ||
, "--testnet-magic", show @Int testnetMagic | ||
] | ||
|
||
poolowneraddresswstakecred <- H.execCli [ "address", "build" | ||
poolowneraddresswstakecred <- execCli [ "address", "build" |
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.
List alignment
@@ -144,20 +136,20 @@ hprop_kes_period_info = H.integration . H.runFinallies . H.workspace "chairman" | |||
poolcoldSkey <- H.note $ tempAbsPath </> "node-pool1/shelley/operator.skey" | |||
|
|||
stakePoolId <- filter ( /= '\n') <$> | |||
H.execCli [ "stake-pool", "id" | |||
execCli [ "stake-pool", "id" |
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.
List alignment
@@ -224,12 +216,12 @@ hprop_kes_period_info = H.integration . H.runFinallies . H.workspace "chairman" | |||
UTxO utxoWithStaking1 <- H.noteShowM $ H.jsonErrorFail $ J.fromJSON @(UTxO AlonzoEra) utxoWithStaking1Json | |||
txinForStakeReg <- H.noteShow =<< H.headM (Map.keys utxoWithStaking1) | |||
|
|||
void $ H.execCli [ "stake-address", "registration-certificate" | |||
void $ execCli [ "stake-address", "registration-certificate" |
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.
List alignment
@@ -241,7 +233,7 @@ hprop_kes_period_info = H.integration . H.runFinallies . H.workspace "chairman" | |||
, "--out-file", work </> "key-registration-cert.txbody" | |||
] | |||
|
|||
void $ H.execCli [ "transaction", "sign" | |||
void $ execCli [ "transaction", "sign" |
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.
List alignment
Resolves: #4602