Plutonomicon / cardano-transaction-lib

A Purescript library for building smart contract transactions on Cardano
https://plutonomicon.github.io/cardano-transaction-lib/
MIT License
92 stars 50 forks source link

Document, formalize and expose PlutusDataSchema #1541

Closed klntsky closed 6 months ago

klntsky commented 1 year ago

This module allows to derive generic PlutusData decoders/encoders for ADTs by providing type-level annotations. The encodings are meant to be compatible with Plutus.

https://plutonomicon.github.io/cardano-transaction-lib/Ctl.Internal.Plutus.Types.DataSchema.html

The comments in source code reveal more info and a usage example. It should be moved to the markdown docs. Expose the module from the Contract namespace.

klntsky commented 6 months ago

https://github.com/mlabs-haskell/purescript-cardano-plutus-data-schema