Skip to content
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

Merged
merged 1 commit into from
Jan 12, 2023

Conversation

MarcFontaine
Copy link
Contributor

@MarcFontaine MarcFontaine commented Nov 15, 2022

Resolves: #4602

@MarcFontaine
Copy link
Contributor Author

#4602

@MarcFontaine MarcFontaine force-pushed the mafo/4602-testnet-api branch 2 times, most recently from b412d13 to ff2f3c4 Compare November 16, 2022 09:35
@MarcFontaine MarcFontaine force-pushed the mafo/4602-testnet-api branch 2 times, most recently from 015f509 to 2f0f333 Compare November 16, 2022 14:56
Util.Assert
Util.Base
Util.Ignore
Util.Process
Util.Runtime
Parsers
Copy link
Contributor

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

Copy link
Contributor Author

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
Copy link
Contributor

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

Copy link
Contributor

@Jimbo4350 Jimbo4350 left a 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

@MarcFontaine
Copy link
Contributor Author

bors r+

iohk-bors bot added a commit that referenced this pull request Dec 15, 2022
4636: Export cardano-testnet API from Cardano.Testnet r=MarcFontaine a=MarcFontaine



Co-authored-by: MarcFontaine <[email protected]>
@MarcFontaine
Copy link
Contributor Author

bors r-

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Dec 15, 2022

Canceled.

@MarcFontaine
Copy link
Contributor Author

bors r+

iohk-bors bot added a commit that referenced this pull request Dec 15, 2022
4636: Export cardano-testnet API from Cardano.Testnet r=MarcFontaine a=MarcFontaine



Co-authored-by: MarcFontaine <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Dec 15, 2022

Timed out.

@MarcFontaine
Copy link
Contributor Author

bors r+

iohk-bors bot added a commit that referenced this pull request Dec 16, 2022
4636: Export cardano-testnet API from Cardano.Testnet r=MarcFontaine a=MarcFontaine



Co-authored-by: MarcFontaine <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Dec 16, 2022

Timed out.

@MarcFontaine
Copy link
Contributor Author

bors r+

iohk-bors bot added a commit that referenced this pull request Dec 22, 2022
4636: Export cardano-testnet API from Cardano.Testnet r=MarcFontaine a=MarcFontaine



Co-authored-by: MarcFontaine <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Dec 22, 2022

Timed out.

@MarcFontaine
Copy link
Contributor Author

bors r+

iohk-bors bot added a commit that referenced this pull request Jan 3, 2023
4636: Export cardano-testnet API from Cardano.Testnet r=MarcFontaine a=MarcFontaine



Co-authored-by: MarcFontaine <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jan 3, 2023

Build failed:

module Parsers where
module Testnet.Parsers
(
commands
Copy link
Contributor

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.

Copy link
Contributor

@Jimbo4350 Jimbo4350 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work 👍

@MarcFontaine
Copy link
Contributor Author

bors r+

iohk-bors bot added a commit that referenced this pull request Jan 12, 2023
4636: Export cardano-testnet API from Cardano.Testnet r=MarcFontaine a=MarcFontaine



Co-authored-by: MarcFontaine <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jan 12, 2023

Build failed:

@@ -1,4 +1,6 @@
module Parsers where
module Testnet.Parsers
Copy link
Contributor

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"
Copy link
Contributor

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"
Copy link
Contributor

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"
Copy link
Contributor

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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

List alignment

@Jimbo4350 Jimbo4350 merged commit ce5d3fa into master Jan 12, 2023
@iohk-bors iohk-bors bot deleted the mafo/4602-testnet-api branch January 12, 2023 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Selectively expose modules from cardano-testnet
2 participants