All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and we follow Semantic Versioning.
- Replaced cardano-serialization-lib (CSL) with cardano-data-lite (CDL) (#21)
fromCsl
andtoCsl
functions renamed tofromCdl
andtoCdl
respectively
PlutusScript.fromCdl
(previouslyfromCsl
) now accepts an additionalLanguage
parameter, since the corresponding CDL type doesn't preserve the language tag (#21)
AsCbor
instance forPlutusScript
. Please use thePlutusScript.encodeCbor
andPlutusScript.decodeCbor
functions instead (#21)PointerAddress
and the correspondingAddress
constructor (marked as deprecated in Conway) (#21)
- introduce
Cardano.Types.Chain
module with exported types:Chain
,ChainTip
,BlockHeaderHash
- introduce
Cardano.Types.DelegationsAndRewards
module with exported types:DelegationsAndRewards
- introduce
Cardano.Types.EraSummaries
module with exported types:EpochLength
,EraSummaries
,EraSummary
,EraSummaryParameters
,EraSummaryTime
,RelativeTime
,SafeZone
,SlotLength
- Synchronized with
@mlabs-haskell/cardano-serialization-lib-gc
versionv13.2.0
. Transaction.hash
now internally converts aTransaction
toFixedTransaction
under the hood. Context: The previously usedhash_transaction
function has been removed from CSL as it could not guarantee the correctness of a transaction hash for transactions created by third-party tools.
- Synchronized with
@mlabs-haskell/cardano-serialization-lib-gc
versionv12.0.0
. - Renamed
DrepVotingThresholds
toDRepVotingThresholds
.
More utils for end users:
Cardano.Types.Transaction
:findUtxos
Cardano.Types.TransactionInput
:pprintTransactionInput
Cardano.Types.TransactionUnspentOutput
:filterUtxos
,hasTransactionHash
- Do not add empty Withdrawals map to serialized TransactionBody (#11)
- Moved to
Conway
era and@mlabs-haskell/cardano-serialization-lib-gc
versionv12.0.0-alpha.31
. datum
field of aRedeemer
: useRedeemerDatum
instead ofPlutusData
RedeemerDatum
type (a tagged newtype overPlutusData
)- Field access lenses for main domain types (
Transaction
,TransactionOutput
,TransactionInput
)
Aeson
instances forAssetName
: encode as byte string instead of Plutus-compatible encoding. The instances have been moved topurescript-plutus-types
(TokenName
).
First complete version of the library