- Re-export types
Doc
andAnsiStyle
inTest.Cardano.Ledger.Binary.TreeDiff
diffExpr
anddiffExprCompact
changed type signature- Add
diffExprString
anddiffExprCompactString
, which replace the old implementations ofdiffExprNoColor
anddiffExprCompactNoColor
and embed ANSI color sequences into the strings - Add functions
ansiExpr
andansiExprString
that produce colored output viatoExpr
- Add a function
tableDoc
that formats a table usingPrettyprinter
- Add a function
ansiDocToString
that converts a prettyprinted document to a string with embedded ANSI color sequences - Add
assertColorFailure
,callStackToLocation
andsrcLocToLocation
- Add
writeSpec
funtion to Test.Cardano.Ledger.Binary.Cuddle
- Add the module Test.Cardano.Ledger.Binary.Cuddle with the
functions
huddleRoundTripCborSpec
andhuddleRoundTripAnnCborSpec
.
- Add
EncCBOR
andDecCBOR
instances forScriptContext
for PlutusV1/V2/V3
- Re-export:
Pretty
ansiWlPretty
ppEditExpr
ediff
- Add
decodeFullAnnotatorFromHexText
andwithHexText
- Increase
MaxVersion
to11
- Add
EncCBOR
andDecCBOR
instances forEpochInterval
- Add
decodeNonEmptyList
- Add instance
EncCBOR
/DecCBOR
instance forSignedDSIGN
and addencodedSignedDSIGNSizeExpr
- Remove unused and badly named
decodeMapNoDuplicates
- Fix
decodeVMap
to no longer allow duplicates - Add
decodeMapLikeEnforceNoDuplicates
anddecodeListLikeWithCount
- Change the semantics of one argument for
decodeListLikeEnforceNoDuplicates
anddecodeSetLikeEnforceNoDuplicates
functions from checking membership to geting the size - Change
decodeListLikeEnforceNoDuplicates
to also accept length decoding function - Add
decodeListLikeT
anddecodeListLike
- Moved
ToExpr
instances out of the main library and into the testlib. - Add
encodeEnum
anddecodeEnumBounded
- Change first argument of
decodeRecordSum
andSummands
fromString
toText
- Add
diffExprCompact
- Export
decodeListLikeEnforceNoDuplicates
#3791 - Add
Show
andEq
forCBORGroup
- Addition of
Test.Cardano.Ledger.Binary.Cddl
spec testing. - Export
toExpr
fromTest.Cardano.Ledger.Binary.TreeDiff
- Export
decodeSetTag
,allowTag
,variableListLenEncoding
, anddecodeSetLikeEnforceNoDuplicates
#3779 - Moved
diffExpr
,diffExprNoColor
,ediffEq
into thetestlib
- Add
ToExpr
instance for:Sized
SignedDSIGN
- Add
Generic
instance forCompactValue
- Add
fieldGuarded
to be able to conditionally construct aField
#3712 - Expose
showDecoderError
fromCardano.Ledger.Binary.Plain
- Add
roundTripCborSpec
androundTripAnnCborSpec
- Adjust output of
showHexBytesGrouped
- Add helper functions:
showMaybeDecoderError
andshowFailedTermsWithReSerialization
- Improve failure reporting when re-serialization does not match for RoundTrip tests.
- Re-export
ToExpr
fromTest.Cardano.Ledger.Binary.TreeDiff
- Changed bounds on plutus-ledger-api
- GHC-9.6 compatibility
- Add
unlessDecoderVersionAtLeast
andguardUntilAtLeast
- Set bound on cborg >=0.2.9
- Add
ToJSON
/FromJSON
instances forVersion
- Add
decodeFullFromHexText
andserializeAsHexText
- Add
Arbitrary
instance forTerm
totestlib
. - Add
encodeStrictMaybe
/decodeStrictMaybe
andencodeNullStrictMaybe
/decodeNullStrictMaybe
- Fix CBOR instance for
StrictMaybe
. It was never used in Byron, so special serialization is not needed for pre-protocol version2
. - Re-export crypto related encoding and decoding functions for
VRF
,KES
andDSIGN
fromCardano.Ledger.Binary.Plain
- Fix deserializer for
Rational
and allow optionally tag30
starting with protocol version2
- Fix serializer for
Ratio
and encode tag30
starting with protocol version2
- Add new encoder
encodeRatioNoTag
forRatio
- Changed: Starting in version 9, duplicate keys in CBOR sets are not longer allowed. Additionally, the CBOR set tag 258 is permitted but not enforced.
- Add
Arbitrary
instance forTerm
- Renamed:
roundTripAnnFailureRangeExpectation
->roundTripAnnRangeFailureExpectation
roundTripFailureCborRangeExpectation
->roundTripCborRangeFailureExpectation
roundTripAnnFailureRangeExpectation
->roundTripAnnRangeFailureExpectation
- Added:
embedTripFailureExpectation
embedTripRangeFailureExpectation
roundTripRangeFailureExpectation
- First version. Released on an unsuspecting world.