Skip to content

Add ToJSON/FromJSON instances for EraTxOut#5855

Draft
koslambrou wants to merge 1 commit into
koslambrou/eratxcert-jsonfrom
koslambrou/eratxout-json
Draft

Add ToJSON/FromJSON instances for EraTxOut#5855
koslambrou wants to merge 1 commit into
koslambrou/eratxcert-jsonfrom
koslambrou/eratxout-json

Conversation

@koslambrou
Copy link
Copy Markdown
Contributor

Description

  • Add FromJSON (TxOut era) as EraTxOut superclass constraint
  • Add FromJSON t as Val t superclass constraint
  • Add ToJSON/FromJSON for Datum era
  • Add FromJSON for ShelleyTxOut, AlonzoTxOut, BabbageTxOut
  • Add FromJSON for MaryValue; fix FromJSON/FromJSONKey for AssetName to hex-decode
  • Add round-trip JSON property test for TxOut era

Checklist

  • Commits in meaningful sequence and with useful messages.
  • Tests added or updated when needed.
  • CHANGELOG.md files updated for packages with externally visible changes.
    NOTE: New section is never added with the code changes. (See RELEASING.md).
  • Versions updated in .cabal and CHANGELOG.md files when necessary, according to the
    versioning process.
  • Version bounds in .cabal files updated when necessary.
    NOTE: If bounds change in a cabal file, that package itself must have a version increase. (See RELEASING.md).
  • Code formatted (use scripts/fourmolize.sh).
  • Cabal files formatted (use scripts/cabal-format.sh).
  • CDDL files are up to date (use scripts/gen-cddl.sh)
  • hie.yaml updated (use scripts/gen-hie.sh).
  • Self-reviewed the diff.

@koslambrou koslambrou force-pushed the koslambrou/eratxout-json branch from 4389123 to a8905cb Compare May 21, 2026 13:43
@koslambrou koslambrou force-pushed the koslambrou/eratxcert-json branch from 21f6224 to d31f458 Compare May 21, 2026 15:26
@koslambrou koslambrou force-pushed the koslambrou/eratxout-json branch from a8905cb to ef69613 Compare May 21, 2026 15:27
@koslambrou koslambrou force-pushed the koslambrou/eratxcert-json branch 2 times, most recently from 52b3c77 to e9dee9e Compare May 22, 2026 15:30
@koslambrou koslambrou force-pushed the koslambrou/eratxout-json branch from ef69613 to eb4384c Compare May 22, 2026 15:30
* Add FromJSON (TxOut era) as EraTxOut superclass constraint
* Add FromJSON t as Val t superclass constraint
* Add ToJSON/FromJSON for Datum era
* Add FromJSON for ShelleyTxOut, AlonzoTxOut, BabbageTxOut
* Add FromJSON for MaryValue; fix FromJSON/FromJSONKey for AssetName to hex-decode
* Add round-trip JSON property test for TxOut era
@koslambrou koslambrou force-pushed the koslambrou/eratxcert-json branch from e9dee9e to c7303f1 Compare May 22, 2026 15:31
@koslambrou koslambrou force-pushed the koslambrou/eratxout-json branch from eb4384c to 43ede53 Compare May 22, 2026 15:31
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.

1 participant