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 functions instead of pattern synonyms for ledger events #400

Merged
merged 2 commits into from
Dec 13, 2023

Conversation

Jimbo4350
Copy link
Contributor

Changelog

- description: |
    Expose all ledger events and convert the pattern synonyms to functions so GHC will warn us if we haven't handled a particular ledger event.
# 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
  - improvement    # QoL changes e.g. refactoring
  # - 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

Additional context for the PR goes here. If the PR fixes a particular issue please provide a link to the issue.

How to trust this PR

Highlight important bits of the PR that will make the review faster. If there are commands the reviewer can run to observe the new behavior, describe them.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. See Running tests for more details
  • Self-reviewed the diff

@Jimbo4350 Jimbo4350 force-pushed the jordan/expose-remaining-existing-ledger-events-conway branch 4 times, most recently from 1a233e8 to 538266b Compare December 12, 2023 20:46
@Jimbo4350 Jimbo4350 force-pushed the jordan/expose-remaining-existing-ledger-events-conway branch from 538266b to 53615e8 Compare December 12, 2023 20:49
@Jimbo4350 Jimbo4350 changed the title Expose all ledger events Use functions instead of pattern synonyms for ledger events Dec 12, 2023
@Jimbo4350 Jimbo4350 marked this pull request as ready for review December 12, 2023 20:50
@Jimbo4350 Jimbo4350 force-pushed the jordan/expose-remaining-existing-ledger-events-conway branch from 53615e8 to 430bca3 Compare December 13, 2023 14:20
@Jimbo4350 Jimbo4350 force-pushed the jordan/expose-remaining-existing-ledger-events-conway branch from 430bca3 to 130d3b7 Compare December 13, 2023 15:14
…r events we want

GHC will warn us when a new ledger event is introduced in cardano-ledger
Create modules Cardano.Api.LedgerEvents.Rule.X based on the specific
ledger rules from where these ledger events are emitted
@Jimbo4350 Jimbo4350 force-pushed the jordan/expose-remaining-existing-ledger-events-conway branch from 130d3b7 to 97a2b29 Compare December 13, 2023 15:42
@Jimbo4350 Jimbo4350 enabled auto-merge December 13, 2023 15:51
@Jimbo4350 Jimbo4350 added this pull request to the merge queue Dec 13, 2023
Merged via the queue into main with commit 86adc33 Dec 13, 2023
@Jimbo4350 Jimbo4350 deleted the jordan/expose-remaining-existing-ledger-events-conway branch December 13, 2023 16:17
newhoggy added a commit that referenced this pull request Mar 11, 2024
…UTxOCostPerWordFeature

Delete `--utxo-cost-per-word`.  No longer supporting this flag in any era going forward
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.

2 participants