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

Add Tx parsing feature #43

Open
3 tasks
uhbif19 opened this issue Apr 19, 2024 · 1 comment
Open
3 tasks

Add Tx parsing feature #43

uhbif19 opened this issue Apr 19, 2024 · 1 comment
Labels
backends good first issue Good for newcomers in-catalyst-milestone Something needed to be done for Catalyst milestones to closed

Comments

@uhbif19
Copy link
Contributor

uhbif19 commented Apr 19, 2024

Parser would probably look like parseTx :: CEMScriptCompiled script => TxBody -> CEMScriptDatum script, where type CEMScriptDatum script = (Params script, State script). Though TxBody from cardano-api might be actually inconvenient for specific indexer interface (#44). But they are nice to have to do roundtrip tests in PSM backend, as it uses cardano-api types.

There should be existent implementation somewhere in old hydra-aucton.

TODO:

  • Add parsing function
  • Basic build-parse roundtrip test
  • Use it in state-machine tests (to check it always works and created Tx are always correct)
@uhbif19 uhbif19 added the good first issue Good for newcomers label Apr 26, 2024
@uhbif19 uhbif19 added the in-catalyst-milestone Something needed to be done for Catalyst milestones to closed label May 28, 2024
@uhbif19 uhbif19 assigned euonymos and unassigned euonymos Jun 30, 2024
@uhbif19
Copy link
Contributor Author

uhbif19 commented Jun 30, 2024

FYI @euonymos , signature you asked for

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backends good first issue Good for newcomers in-catalyst-milestone Something needed to be done for Catalyst milestones to closed
Projects
None yet
Development

No branches or pull requests

2 participants