This library contains wrappers over autogenerated bindings for CSL and some types adapted from cardano-api
and cardano-wallet
. It is primarily used in cardano-transaction-lib
.
This library presents Transaction
and all its structural components as PureScript algebraic data types.
newtype
s over CSL (we use a vendored version for both nodejs & the browser, with GC added).Here's what is included:
EncodeAeson
/DecodeAeson
instances - no compatibility with CSL is maintained, because JSON encoders in CSL are partialAsCbor
instances for types that are representable as binaryShow
, Eq
, Ord
, Generic
instances where they make senseToMetadata
/FromMetadata
and ToData
/FromData
typeclasses and some instancesTagSet
from monad-logger
.fromCsl
/ toCsl
functions that lift values between CSL and purescript domains (only for types ported from CSL)Asset
AssetClass
PaymentPubKeyHash
UtxoMap
Semigroup
instances for Value
, ExUnits
and Mint
are unlawful (they unsafely throw on numeric overflows)TransactionBuilder
- for a framework to build transactions, see cardano-transaction-lib
Block
, BlockHeader
- these are not needed for an in-browser dApp.