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

Use cardano-cli create-testnet-data instead of create-staked #5630

Merged
merged 11 commits into from
Jan 22, 2024

Conversation

Jimbo4350
Copy link
Contributor

Description

Use create-testnet-data because create-staked was somewhat rushed into cardano-cli. We plan to improve and potentially make breaking changes to create-testnet-data and we want to avoid breaking existing functionality in create-staked.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. These may include:
    • golden tests
    • property tests
    • roundtrip tests
    • integration tests
      See Runnings tests for more details
  • Any changes are noted in the CHANGELOG.md for affected package
  • The version bounds in .cabal files are updated
  • CI passes. See note on CI. The following CI checks are required:
    • Code is linted with hlint. See .github/workflows/check-hlint.yml to get the hlint version
    • Code is formatted with stylish-haskell. See .github/workflows/stylish-haskell.yml to get the stylish-haskell version
    • Code builds on Linux, MacOS and Windows for ghc-8.10.7 and ghc-9.2.7
  • Self-reviewed the diff

Note on CI

If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons.
You will need to get someone with write privileges. Please contact IOG node developers to do this
for you.

@Jimbo4350 Jimbo4350 force-pushed the jordan/convert-to-create-testnet-data branch 4 times, most recently from f6b7c3e to c801e4e Compare January 10, 2024 13:27
@carbolymer carbolymer self-requested a review January 10, 2024 14:14
Comment on lines +216 to +219
convertToEraString (AnyCardanoEra e) =
case e of
ConwayEra -> "conway"
BabbageEra -> "babbage"
AlonzoEra -> "alonzo"
MaryEra -> "mary"
AllegraEra -> "allegra"
ShelleyEra -> "shelley"
ByronEra -> "byron"
Copy link
Contributor

Choose a reason for hiding this comment

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

You can use this instead:

Suggested change
convertToEraString (AnyCardanoEra e) =
case e of
ConwayEra -> "conway"
BabbageEra -> "babbage"
AlonzoEra -> "alonzo"
MaryEra -> "mary"
AllegraEra -> "allegra"
ShelleyEra -> "shelley"
ByronEra -> "byron"
convertToEraString = map toLower . docToString . pshow

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This actually gives "conwayera". I'm reverting to what I originally had.

Copy link
Contributor

Choose a reason for hiding this comment

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

Right. Sorry I meant convertToEraString = map toLower . docToString . pretty.

@@ -89,7 +89,7 @@ isLinux = os == "linux"

-- | Submit the desired epoch to wait to.
waitUntilEpoch
:: (MonadCatch m, MonadIO m, MonadTest m)
:: (MonadCatch m, MonadIO m, MonadTest m, HasCallStack)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! HasCallStack is always useful.

Copy link
Contributor

@smelc smelc left a comment

Choose a reason for hiding this comment

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

Nice 👍

@Jimbo4350 Jimbo4350 force-pushed the jordan/convert-to-create-testnet-data branch 4 times, most recently from e655ba3 to 6ef266e Compare January 11, 2024 19:29
@Jimbo4350 Jimbo4350 force-pushed the jordan/convert-to-create-testnet-data branch 2 times, most recently from ebee449 to 454a8d0 Compare January 19, 2024 16:19
@Jimbo4350 Jimbo4350 force-pushed the jordan/convert-to-create-testnet-data branch from 454a8d0 to db7229b Compare January 19, 2024 18:08
@Jimbo4350 Jimbo4350 added this pull request to the merge queue Jan 19, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to invalid changes in the merge commit Jan 19, 2024
@smelc smelc force-pushed the jordan/convert-to-create-testnet-data branch from db7229b to 1d10a76 Compare January 22, 2024 09:39
@smelc
Copy link
Contributor

smelc commented Jan 22, 2024

I rebased the branch.

@carbolymer carbolymer merged commit ffa05ec into master Jan 22, 2024
17 of 22 checks passed
@carbolymer carbolymer deleted the jordan/convert-to-create-testnet-data branch January 22, 2024 15:00
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.

3 participants