mlabs-haskell / cem-script

https://cardano.ideascale.com/c/idea/106740
MIT License
2 stars 2 forks source link

Add Tx parsing feature #43

Open uhbif19 opened 5 months ago

uhbif19 commented 5 months ago

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:

uhbif19 commented 3 months ago

FYI @euonymos , signature you asked for