IntersectMBO / cardano-cli

This repository contains sources for the command-line interface (CLI) tool for interacting with the Cardano blockchain.
Apache License 2.0
39 stars 15 forks source link

Make genesis creation commands era-sensitive #812

Closed carbolymer closed 2 months ago

carbolymer commented 3 months ago

Changelog

- description: |
    Make `genesis`: `create`, `create-staked` and `create-cardano` commands accept optional era parameters.
# uncomment types applicable to the change:
  type:
   - feature        # introduces a new feature
  # - breaking       # the API has changed in a breaking way
   - compatible     # the API has changed but is non-breaking
  # - optimisation   # measurable performance improvements
  # - refactoring    # QoL changes
  # - bugfix         # fixes a defect
  # - test           # fixes/modifies tests
  # - maintenance    # not directly related to the code
  # - release        # related to a new release preparation
  # - documentation  # change in code docs, haddocks...

Context

Make genesis: create, create-staked and create-cardano commands accept optional era parameters. This is needed for decoding of Alonzo genesis. This PR requires changes from: https://github.com/IntersectMBO/cardano-api/pull/564

Fixes: https://github.com/IntersectMBO/cardano-cli/issues/801

Checklist

smelc commented 2 months ago

Looking good so far :+1:

palas commented 2 months ago

Backup: https://github.com/IntersectMBO/cardano-cli/tree/backup/mgalazyn/fix/make-plutus-v2-cost-model-era-dependent

palas commented 2 months ago

FYI: I have rebased your branch because we have done changes to the formatting. I have made a copy of the unrebased branch that you can find in my previous comment in this PR.