IntersectMBO / cardano-api

Cardano API
Apache License 2.0
26 stars 23 forks source link

Refactor `TxMintValue` #663

Closed carbolymer closed 5 days ago

carbolymer commented 1 month ago

Changelog

- description: |
    Add `sbeToSimpleScriptLanguageInEra`, `getScriptWitnessScript`, `getScriptWitnessReferenceInput`, `getScriptWitnessReferenceInputOrScript` function
    Refactor `TxMintValue` to better represent minting state
    Propagate `IsPlutusLanguage` constraint to `ScriptLanguage lang`, `AnyPlutusScriptVersion`, `Script lang` and `ScriptWitness witctx era` types.
    Remove `Maybe ScriptHash` from `PReferenceScript` and `SReferenceScript`.

# 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

Supersedes:

Fixes:

Checklist

carbolymer commented 6 days ago