mlabs-haskell / cem-script

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

Document possible interfaces and serialization formats for front-end #15

Open uhbif19 opened 7 months ago

uhbif19 commented 7 months ago

This question is out of scope of current Catalyst Project. We believe that simple server-generates-tx-and-client-signs-it would be simple to implement, and more complex solutions are not planned in current milestones.

Still, as @euonymos correctly noted, this question is of huge importance for real-world applications. So we should document how interface is intended to be used in end of project.

uhbif19 commented 2 months ago

@euonymos So far seems that in current design the only option is DSL to PureScript transpiler. But Plutarch may be inlined in DSL, and AFAIU PLC cannot be executed on fronted (as we do in Haskell offchain code), so the only option is to manually specify PureScript equivalent for each inlined Plutarch function.

UPD

@klntsky said that you can parse it at least

https://github.com/butaneprotocol/blaze-cardano/blob/df5842bdafb4530c372cc1a537b61fc19f0418df/packages/blaze-uplc/src/types.ts